Part Number Hot Search : 
150JE 3154A MTZJ2V7 L9825TR MSAD100 2SK800 MP6922A MC145
Product Description
Full Text Search
 

To Download DS3170LN Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 233 rev: 101404 note: some revisions of this device may incorporate deviations from published specifications known as errata. multiple revisions of any device may be simultaneously available through various sales channels. for information about device errata, click here: www.maxim-ic.com/errata . general description the ds3170 combines a ds3/e3 framer and an liu (single-chip transceiver) to interface to a ds3/e3 physical copper line. applications access concentrators routers and switches multiservice access platforms (msaps) sonet/sdh adm sonet/sdh muxes multiservice protocol platform (mspps) pbxs test equipment digital cross connect pdh multiplexer/ demultiplexer integrated-access device (iad) ordering information part temp range pin-package ds3170 0c to +70c 100 csbga (11mm x 11mm, 1mm pitch) ds3170l 0c to +70c 100 lqfp (14mm x 14mm, 1.4mm pitch) ds3170n -40c to +85c 100 csbga (11mm x 11mm, 1mm pitch) DS3170LN -40c to +85c 100 lqfp (14mm x 14mm, 1.4mm pitch) functional diagram ds3170 ds3/e3 line ds3/ e3 liu ds3/e3 framer/ formatter system backplane features  single-chip transceiver for ds3 and e3  performs receive clock/data recovery and transmit waveshaping for ds3 and e3  jitter attenuator can be placed either in the receive or transmit path  interfaces to 75  coaxial cable at lengths up to 380 meters or 1246 feet (ds3), or 440 meters or 1443 feet (e3)  uses 1:2 transformers on both tx and rx  on-chip ds3 (m23 or c-bit) and e3 (g.751 or g.832) framer  built-in hdlc controller with 256-byte fifo for the insertion/extraction of ds3 pmdl, g.751 sn bit, and g.832 nr/gc bytes  on-chip bert for prbs and repetitive pattern generation, detection and analysis  large performance-monitoring counters for accumulation intervals of at least 1 second  flexible overhead insertion/extraction port for ds3, e3 framers  loopbacks include line, diagnostic, framer, payload, and analog with capabilities to insert ais in the directions away from loopback directions  integrated clock rate adapter to generate the remaining internally required 44.736mhz (ds3) and 34.368mhz (e3) from a single-clock reference source  clad reference clock can be 44.736mhz, 34.368mhz, 77.76mhz, 51.84mhz, or 19.44mhz  software compatible with ds3171?ds3174 sct product family  8-/16-bit parallel and slave spi serial ( 10mbps) microprocessor interface  low-power (0.5w) 3.3v operation (5v tolerant i/o)  100-pin small 11mm (1mm) csbga and 14mm (1.4mm) lqfp package options  industrial temperature operation: -40c to +85c  ieee1149.1 jtag test port product brief ds3170 ds3/e3 single-chip transceive r www.maxim-ic.com
ds3170 ds3/e3 single-chip transceiver 2 of 233 detailed description the ds3170 is a software-configured, ds3/e3, single-chip transceiver (sct). the line interface unit (liu) has independent receive and transmit paths. the receiver liu block performs clock and data recovery from a b3zs- or hdb3-coded ami signal and monitors for loss of the incoming signal, and can be bypassed for direct clock and data input. the receiver liu block optionally performs b3zs/hdb3 decoding. the transmitter liu drives standard pulse-shape waveforms onto 75  coaxial cable and can be bypassed for direct clock and data output. the jitter attenuator can be put in the transmit or receive data path when the liu is enabled. built-in ds3/e3 framers transmit and receive data in properly formatted c-bit ds3, m23 ds3, g.751 e3 or g.832 e3 data streams. functions not used are powered down to reduce system power requirements. the ds3170 conforms to the telecommunications standards listed in section 3.2 . 1 block diagrams figure 1-1 shows the external components required at the liu interface for proper operation. figure 1-2 shows the functional block diagram of the one channel ds3/e3 sct. figure 1-1. liu external connections for the ds3/e3 port of ds3170 1:2ct 1:2ct transmit receive txp txn rxp rxn 0.01uf 3.3v power plane ground plane vdd ds3/e3 liu interface 0.1uf 1uf 330  (1%) 330  (1%) 0.01uf 0.1uf 1uf 0.01uf 0.1uf 1uf vdd vdd vss vss vss
ds3170 ds3/e3 single-chip transceiver 3 of 233 figure 1-2. block diagram tsofo/tden rlclk rxp rxn tpos/tdat tneg tlclk ds3/e3 transmit liu ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst hdlc feac txp txn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer roh rohclk rohsof toh tohclk tohsof rser rclko/rgclk rsofo/rden ds3/e3 receive liu tais tua1 tohen clock rate adapter refclk mode int gpio[8:1] width rdy tclko/tgclk plb alb ua1 gen rpos/rdat rneg/rclv rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder serial interface mode: spi (sclk, mosi, and miso) a[0]/bswap spi tclki tser tsofi tx bert rx bert ds3170
ds3170 ds3/e3 single-chip transceiver 4 of 233 table of contents 1 block diagrams 2 2 applications 12 3 feature details 13 3.1 g lobal f eatures ............................................................................................................................... ......... 13 3.2 r eceive ds3/e3 liu f eatures .................................................................................................................. 13 3.3 j itter a ttenuator f eatures ..................................................................................................................... 13 3.4 r eceive ds3/e3 f ramer f eatures ........................................................................................................... 13 3.5 t ransmit ds3/e3 f ormatter f eatures .................................................................................................... 14 3.6 t ransmit ds3/e3 liu f eatures ................................................................................................................. 14 3.7 c lock r ate a dapter f eatures ................................................................................................................. 14 3.8 hdlc c ontroller f eatures ..................................................................................................................... 14 3.9 feac c ontroller f eatures ..................................................................................................................... 14 3.10 t rail t race b uffer f eatures ................................................................................................................... 15 3.11 b it e rror -r ate t ester (bert) f eatures ................................................................................................ 15 3.12 l oopback f eatures ............................................................................................................................... .... 15 3.13 m icroprocessor i nterface f eatures ..................................................................................................... 15 3.14 s lave s erial p eripheral i nterface (spi) f eatures ................................................................................ 15 3.15 t est f eatures ............................................................................................................................... ............. 15 4 standards compliance 16 5 acronyms and glossary 17 6 major operational modes 18 6.1 ds3/e3 f ramed liu m ode .......................................................................................................................... 18 6.2 ds3/e3 u nframed liu m ode ..................................................................................................................... 20 6.3 ds3/e3 f ramed pos/neg m ode ............................................................................................................... 21 6.4 ds3/e3 u nframed pos/neg m ode .......................................................................................................... 22 6.5 ds3/e3 f ramed uni m ode ......................................................................................................................... 23 6.6 ds3/e3 u nframed uni m ode ..................................................................................................................... 24 7 pin descriptions 25 7.1 s hort p in d escriptions ............................................................................................................................. 25 7.2 d etailed p in d escriptions ......................................................................................................................... 27 7.3 p in f unctional t iming ............................................................................................................................... .37 7.3.1 line io........................................................................................................................ .......................... 37 7.3.2 ds3/e3 framing overhead functional timing .................................................................................... 40 7.3.3 ds3/e3 serial data interface................................................................................................... ............ 41 7.3.4 microprocessor interface functional timing ..................................................................................... ... 43 7.3.5 jtag functional timing......................................................................................................... .............. 50 8 initialization and configuration 51 8.1 m onitoring and d ebugging ....................................................................................................................... 52 9 functional description 53 9.1 p rocessor b us i nterface ......................................................................................................................... 53 9.1.1 spi serial port mode........................................................................................................... ................. 53 9.1.2 8/16 bit bus widths............................................................................................................ .................. 53 9.1.3 ready signal ( rdy ) ............................................................................................................................. 5 3 9.1.4 byte swap modes ................................................................................................................ ................ 53 9.1.5 read-write/data strobe modes ................................................................................................... ........ 53 9.1.6 clear on read/clear on write modes ............................................................................................. ..... 53 9.1.7 interrupt and pin modes........................................................................................................ ............... 54 9.1.8 interrupt structure ............................................................................................................ .................... 54 9.2 c locks ............................................................................................................................... ......................... 55 9.2.1 line clock modes............................................................................................................... .................. 55 9.2.2 sources of clock output pin signals ............................................................................................ ....... 57 9.2.3 line io pin timing source selection ............................................................................................ ....... 59 9.2.4 clock structures on signal io pins ............................................................................................. ........ 62
ds3170 ds3/e3 single-chip transceiver 5 of 233 9.2.5 gapped clocks.................................................................................................................. ................... 63 9.3 r eset and p ower -d own ............................................................................................................................ 63 9.4 g lobal r esources ............................................................................................................................... ...... 66 9.4.1 clock rate adapter (clad) ...................................................................................................... ........... 66 9.4.2 8 khz reference generation ..................................................................................................... .......... 66 9.4.3 one second reference generation................................................................................................ ..... 67 9.4.4 general-purpose io pins ........................................................................................................ ............. 68 9.4.5 performance monitor counter update details ..................................................................................... 69 9.4.6 transmit manual error insertion ................................................................................................ .......... 70 9.5 p ort r esources ............................................................................................................................... ......... 71 9.5.1 loopbacks ...................................................................................................................... ...................... 71 9.5.2 loss of signal propagat ion ..................................................................................................... ............ 73 9.5.3 ais lo gic ...................................................................................................................... ........................ 73 9.5.4 loop timing mode ............................................................................................................... ................ 75 9.5.5 hdlc overhead controller ....................................................................................................... ........... 75 9.5.6 trail trace .................................................................................................................... ........................ 75 9.5.7 bert........................................................................................................................... ......................... 75 9.5.8 system port pins............................................................................................................... ................... 76 9.5.9 framing modes .................................................................................................................. .................. 77 9.5.10 line interface modes........................................................................................................... ................. 77 9.6 ds3/e3 f ramer / f ormatter ..................................................................................................................... 79 9.6.1 general description ............................................................................................................ ................. 79 9.6.2 features ....................................................................................................................... ........................ 79 9.6.3 transmit formatter............................................................................................................. .................. 80 9.6.4 receive framer................................................................................................................. ................... 80 9.6.5 c-bit ds3 framer/formatter ..................................................................................................... ........... 84 9.6.6 m23 ds3 framer/formatter ....................................................................................................... .......... 87 9.6.7 g.751 e3 framer/formatter...................................................................................................... ........... 89 9.6.8 g.832 e3 framer/formatter...................................................................................................... ........... 91 9.7 hdlc o verhead c ontroller .................................................................................................................... 96 9.7.1 general description ............................................................................................................ ................. 96 9.7.2 features ....................................................................................................................... ........................ 97 9.7.3 transmit fifo .................................................................................................................. .................... 97 9.7.4 transmit hdlc overhead processor ............................................................................................... ... 98 9.7.5 receive hdlc overhead processor ................................................................................................ ... 98 9.7.6 receive fifo ................................................................................................................... .................... 99 9.8 t rail t race c ontroller ............................................................................................................................ 99 9.8.1 general description ............................................................................................................ ................. 99 9.8.2 features ....................................................................................................................... ...................... 100 9.8.3 functional description......................................................................................................... ............... 100 9.8.4 transmit data storage .......................................................................................................... ............. 101 9.8.5 transmit trace id processor .................................................................................................... ......... 101 9.8.6 transmit trail trace processing ................................................................................................ ........ 101 9.8.7 receive trace id processor ..................................................................................................... ......... 101 9.8.8 receive trail trace processing ................................................................................................. ........ 101 9.8.9 receive data storage ........................................................................................................... ............. 102 9.9 feac c ontroller ............................................................................................................................... .... 102 9.9.1 general description ............................................................................................................ ............... 102 9.9.2 features ....................................................................................................................... ...................... 103 9.9.3 functional description......................................................................................................... ............... 103 9.10 l ine e ncoder /d ecoder ............................................................................................................................ 104 9.10.1 general description ............................................................................................................ ............... 104 9.10.2 features ....................................................................................................................... ...................... 105 9.10.3 b3zs/hdb3 encoder .............................................................................................................. ........... 105 9.10.4 transmit line interface ........................................................................................................ .............. 105 9.10.5 receive line interface ......................................................................................................... .............. 106 9.10.6 b3zs/hdb3 decoder .............................................................................................................. ........... 106 9.11 bert........................................................................................................................... .............................. 108 9.11.1 general description ............................................................................................................ ............... 108
ds3170 ds3/e3 single-chip transceiver 6 of 233 9.11.2 features ....................................................................................................................... ...................... 108 9.11.3 configuration and monitoring ................................................................................................... .......... 108 9.11.4 receive pattern detection ...................................................................................................... ........... 109 9.11.5 transmit pattern generation.................................................................................................... .......... 111 9.12 liu ? l ine i nterface u nit ........................................................................................................................ 112 9.12.1 general description ............................................................................................................ ............... 112 9.12.2 features ....................................................................................................................... ...................... 112 9.12.3 detailed de scription ........................................................................................................... ................ 112 9.12.4 transmitter .................................................................................................................... ..................... 113 9.12.5 receiver ....................................................................................................................... ...................... 114 10 overall register map 117 11 register maps and descriptions 119 11.1 r egisters b it m aps ............................................................................................................................... ... 119 11.1.1 global register bit map ........................................................................................................ ............. 119 11.1.2 hdlc register bit map.......................................................................................................... ............ 121 11.1.3 t3 register bit map ............................................................................................................ ............... 123 11.1.4 e3 g.751 register bit map ...................................................................................................... .......... 124 11.1.5 e3 g.832 register bit map ...................................................................................................... .......... 125 11.2 g lobal r egisters ............................................................................................................................... ..... 126 11.2.1 register bit descriptions...................................................................................................... .............. 126 11.3 p ort r egister ............................................................................................................................... ........... 133 11.3.1 register bit descriptions...................................................................................................... .............. 133 11.4 bert........................................................................................................................... .............................. 144 11.4.1 bert register map .............................................................................................................. ............. 144 11.4.2 bert register bit descriptions ................................................................................................. ........ 144 11.5 b3zs/hdb3 l ine e ncoder /d ecoder ....................................................................................................... 151 11.5.1 transmit side line encoder/d ecoder register map ......................................................................... 151 11.5.2 receive side line encoder/ decoder register map .......................................................................... 152 11.6 hdlc........................................................................................................................... .............................. 156 11.6.1 hdlc transmit side register map................................................................................................ .... 156 11.6.2 hdlc receive side register map................................................................................................. .... 159 11.7 feac c ontroller ............................................................................................................................... .... 163 11.7.1 feac transmit side register map................................................................................................ .... 163 11.7.2 feac receive side register map................................................................................................. .... 165 11.8 t rail t race ............................................................................................................................... ................ 168 11.8.1 trail trace transmit side...................................................................................................... ............. 168 11.8.2 trail trace receive side register map .......................................................................................... ... 169 11.9 ds3/e3 framer ............................................................................................................................... .......... 174 11.9.1 transmit ds3 ................................................................................................................... .................. 174 11.9.2 receive ds3 register map....................................................................................................... ......... 176 11.9.3 transmit g.751 e3 .............................................................................................................. ............... 183 11.9.4 receive g.751 e3 register map .................................................................................................. ..... 186 11.9.5 transmit g.832 e3 register map ................................................................................................. ..... 191 11.9.6 receive g.832 e3 register map .................................................................................................. ..... 194 12 jtag information 202 12.1 jtag d escription ............................................................................................................................... ..... 202 12.2 jtag tap c ontroller s tate m achine d escription ............................................................................. 203 12.3 jtag i nstruction r egister and i nstructions ...................................................................................... 205 12.4 jtag id c odes ............................................................................................................................... .......... 206 12.5 jtag f unctional t iming .......................................................................................................................... 207 12.6 io p ins ............................................................................................................................... ....................... 207 13 pin configurations 208 14 package information 213 15 package thermal information 215 16 dc electrical characteristics 216 17 ac timing characteristics 218
ds3170 ds3/e3 single-chip transceiver 7 of 233 17.1 f ramer d ata p ath ac c haracteristics ................................................................................................. 220 17.2 o verhead p ort ac c haracteristics ...................................................................................................... 221 17.3 m icro i nterface ac c haracteristics .................................................................................................... 222 17.3.1 spi bus mode ................................................................................................................... ................. 222 17.3.2 parallel bu s mode .............................................................................................................. ................ 224 17.4 clad j itter c haracteristics ................................................................................................................. 227 17.5 liu i nterface ac c haracteristics ........................................................................................................ 227 17.5.1 waveform templates ............................................................................................................. ............ 227 17.5.2 liu input/output characteristics............................................................................................... ......... 230 17.6 jtag i nterface ac c haracteristics ..................................................................................................... 232 18 revision history 233
ds3170 ds3/e3 single-chip transceiver 8 of 233 list of figures figure 1-1. liu external connections for the ds3/e3 port of ds3170 ............................................................. .......... 2 figure 1-2. block diagram ...................................................................................................... ..................................... 3 figure 2-1. ds3/e3 line card ................................................................................................... ................................ 12 figure 6-1. ds3/e3 framed liu mode ............................................................................................. ......................... 19 figure 6-2. ds3/e3 unframed liu mode ........................................................................................... ....................... 20 figure 6-3. ds3/e3 framed pos/neg mode ......................................................................................... .................. 21 figure 6-4. ds3/e3 unframed pos/neg mode....................................................................................... ................. 22 figure 6-5. ds3/e3 framed uni mode ............................................................................................. ........................ 23 figure 6-6. ds3/e3 unframed uni mode ........................................................................................... ....................... 24 figure 7-1. tx line io b3zs functional timing diagram.......................................................................... ................ 37 figure 7-2. tx line io hdb3 functional timing diagram .......................................................................... ............... 38 figure 7-3. rx line io b3zs functional timing diagram .......................................................................... ............... 38 figure 7-4. rx line io hdb3 functional timing diagram.......................................................................... ............... 39 figure 7-5. tx line io uni functional timing diagram ........................................................................... ................. 39 figure 7-6. rx line io uni functional timing diagram ........................................................................... ................. 40 figure 7-7. ds3 framing rece ive overhead port timing........................................................................... .............. 40 figure 7-8. e3 g.751 framing re ceive overhead port timing ...................................................................... .......... 40 figure 7-9. e3 g.832 framing re ceive overhead port timing ...................................................................... .......... 40 figure 7-10. ds3 framing tr ansmit overhead po rt timing......................................................................... ............. 41 figure 7-11. e3 g.751 framing transmit overhead port timing .................................................................... ......... 41 figure 7-12. e3 g.832 framing transmit overhead port timing .................................................................... ......... 41 figure 7-13. ds3 framed mode transmit serial interface pin timing .............................................................. ....... 42 figure 7-14. e3 g.751 framed mode trans mit serial interface pin timing ......................................................... .... 42 figure 7-15. e3 g.832 framed mode trans mit serial interface pin timing ......................................................... .... 42 figure 7-16. ds3 framed mode receive serial interface pin timing ............................................................... ....... 43 figure 7-17. e3 g.751 framed mode rece ive serial interf ace pin timing .......................................................... .... 43 figure 7-18. e3 g.832 framed mode rece ive serial interf ace pin timing .......................................................... .... 43 figure 7-19. spi serial port access for read mode, spi_cpol=0, spi_cpha = 0 .............................................. 44 figure 7-20. spi serial port access for r ead mode, spi_cpol = 1, spi_cpha = 0 ............................................ 44 figure 7-21. spi serial port access for r ead mode, spi_cpol = 0, spi_cpha = 1 ............................................ 44 figure 7-22. spi serial port access for r ead mode, spi_cpol = 1, spi_cpha = 1 ............................................ 44 figure 7-23. spi serial port access for writ e mode, spi_cpol = 0, spi_cpha = 0 ............................................ 45 figure 7-24. spi serial port access for writ e mode, spi_cpol = 1, spi_cpha = 0 ............................................ 45 figure 7-25. spi serial port access for writ e mode, spi_cpol = 0, spi_cpha = 1 ............................................ 45 figure 7-26. spi serial port access for writ e mode, spi_cpol = 1, spi_cpha = 1 ............................................ 45 figure 7-27. 16-bit mode write................................................................................................. ................................. 46 figure 7-28. 16-bit mode read .................................................................................................. ............................... 46 figure 7-29. 8-bit mode write.................................................................................................. .................................. 47 figure 7-30. 8-bit mode read ................................................................................................... ................................ 47 figure 7-31. 16-bit mode without byte swap ..................................................................................... ....................... 48 figure 7-32b 16-bit mode with byte swap ........................................................................................ ........................ 48 figure 7-33. clear status latched register on read............................................................................. ................... 49 figure 7-34. clear status latched register on write............................................................................ .................... 49 figure 7-35. rdy signal functional timing write ................................................................................................ ..... 50 figure 7-36. rdy signal functional timing read ................................................................................................. .... 50 figure 9-1. interrupt structure ................................................................................................ ................................... 55 figure 9-2. internal tx clock .................................................................................................. ................................... 58 figure 9-3. internal rx clock .................................................................................................. ................................... 59 figure 9-4. example io pin clock muxing........................................................................................ ......................... 63 figure 9-5. reset sources ...................................................................................................... ................................... 64 figure 9-6. 8kref logic ........................................................................................................ ................................... 67 figure 9-7. performance monitor update logic ................................................................................... ..................... 70 figure 9-8. transmit error insert logic........................................................................................ .............................. 71 figure 9-9. lo opback modes ..................................................................................................... ................................ 72 figure 9-10. alb mux ........................................................................................................... ..................................... 72 figure 9-11. ais signal flow ................................................................................................... .................................. 74 figure 9-12. framer de tailed block diagram ..................................................................................... ....................... 79
ds3170 ds3/e3 single-chip transceiver 9 of 233 figure 9-13. ds3 frame format.................................................................................................. .............................. 81 figure 9-14. ds3 subframe framer state diagram ................................................................................. ................. 81 figure 9-15. ds3 multiframe framer state diagram............................................................................... .................. 82 figure 9-16. g.751 e3 frame format ............................................................................................. .......................... 89 figure 9-17. g.832 e3 frame format ............................................................................................. .......................... 92 figure 9-18. ma byte format .................................................................................................... ................................ 92 figure 9-19. hdlc controller block diagram ..................................................................................... ...................... 97 figure 9-20. trail trace c ontroller block diagram .............................................................................. .................... 100 figure 9-21. trail trace byte (dt = trail trace data).......................................................................... ................... 102 figure 9-22. feac cont roller block diagram..................................................................................... ..................... 103 figure 9-23. feac codeword format ............................................................................................. ....................... 104 figure 9-24. line encoder /decoder bloc k diagram ................................................................................ ................ 105 figure 9-25. b3 zs signatures ................................................................................................... .............................. 107 figure 9-26. hdb3 signatures................................................................................................... .............................. 107 figure 9-27. bert block diagram ................................................................................................ .......................... 108 figure 9-28. prbs synchronization state diagram................................................................................ ................ 110 figure 9-29. repetitive pattern synchronization state diagram .................................................................. ........... 111 figure 9-30. liu functional diagram............................................................................................ ........................... 112 figure 9-31. ds3/e3 liu block diagram .......................................................................................... ....................... 113 figure 9-32. receiver jitter tolerance ......................................................................................... ........................... 116 figure 12-1. jtag block diagram................................................................................................ ........................... 202 figure 12-2. jtag tap controller state machine ................................................................................. ................. 203 figure 12-3. jtag functional timing............................................................................................ .......................... 207 figure 13-1. ds3170 pin assignment s?100-ball csbga (top view) .................................................................. 212 figure 13-2. ds3170 pin assignments?100-pin lqfp ............................................................................... .......... 212 figure 14-1. mechanical dim ensions?100-ba ll csbga.............................................................................. .......... 213 figure 14-2. mechanical di mensions?100-pin lqfp................................................................................ ............ 214 figure 17-1. clock period and duty cycle definitions........................................................................... .................. 218 figure 17-2. rise time, fall time, and jitter definitions ...................................................................... .................. 218 figure 17-3. hold, setup, and dela y definitions (ris ing clock edge) ............................................................ ........ 218 figure 17-4. hold, setup, and delay definitions (falling clock edge)........................................................... ......... 219 figure 17-5. to/from hi z delay definitions (ris ing clock edge) ................................................................ .......... 219 figure 17-6. to/from hi z delay definitions (fal ling cloc k edge) ............................................................... .......... 219 figure 17-7. spi interface timing diagram ...................................................................................... ....................... 223 figure 17-8. micro interface n onmultiplexed read/ write cycle ................................................................... .......... 225 figure 17-9. micro interface multiplexed read cycle............................................................................ .................. 226 figure 17-10. ds3 pulse mask template.......................................................................................... ...................... 228 figure 17-11 e3 waveform template.............................................................................................. ........................ 229
ds3170 ds3/e3 single-chip transceiver 10 of 233 list of tables table 4-1. standards compliance ................................................................................................ ............................. 16 table 7-1. ds3170 short pin descriptions ....................................................................................... ......................... 25 table 7-2. detailed pin descriptions ........................................................................................... .............................. 27 table 8-1. configuration of port register settings ............................................................................. ....................... 52 table 9-1. liu enable table.................................................................................................... .................................. 57 table 9-2. all possible clock s ources based on m ode and loopback............................................................... ...... 57 table 9-3. source selectio n of tlclk clock signal .............................................................................. ................... 58 table 9-4. source selection of tclko (internal tx clock)....................................................................... ................ 59 table 9-5. source selection of rclko clock signal (internal rx clock).......................................................... ....... 59 table 9-6. transmit line interface sig nal pin valid timi ng source select ....................................................... ........ 60 table 9-7. transmit framer pin signal timing source select ..................................................................... ............. 61 table 9-8. receive line interface pin signal timing source select .............................................................. ........... 61 table 9-9. receive framer pin signal timing source select ...................................................................... ............. 62 table 9-10. reset and power-down sources ....................................................................................... .................... 65 table 9-11. clad clock source settings ......................................................................................... ........................ 66 table 9-12. global 8 khz reference source table................................................................................ ................... 67 table 9-13. port 8 khz reference source table.................................................................................. ..................... 67 table 9-14. gpio global signals ................................................................................................ .............................. 68 table 9-15. gpio pin glob al mode select bits................................................................................... ...................... 68 table 9-16. gpio port alarm monitor select ..................................................................................... ....................... 69 table 9-17. loopbac k mode sele ctions ........................................................................................... ......................... 71 table 9-18. line ai s enable modes .............................................................................................. ............................ 75 table 9-19. payload (downs tream) ais en able modes .............................................................................. .............. 75 table 9-20. tsofi input pin functions .......................................................................................... ........................... 76 table 9-21. tsofo/tden/output pin functions.................................................................................... .................. 76 table 9-22 tclko/tgclk output pin functions.................................................................................... ................. 76 table 9-23. rsofo/rden output pin functions.................................................................................... ................. 77 table 9-24. rclko/rgclk output pin functions ................................................................................... ................ 77 table 9-25. framing mode select bits fm[2:0] ................................................................................... ...................... 77 table 9-26. line mode se lect bits lm[2:0]...................................................................................... .......................... 78 table 9-27. c-bit ds3 frame overhead bit definitions ........................................................................... ................. 85 table 9-28. m23 ds3 frame overhead bit definitions ............................................................................. ................ 87 table 9-29. g.832 e3 frame overhead bit definitions ............................................................................ ................. 92 table 9-30. payload label match status........................................................................................ .......................... 96 table 9-31. pseudo-random pattern generation ................................................................................... ................ 109 table 9-32. repetitive pattern generation ...................................................................................... ........................ 109 table 9-33. transformer characteristics ........................................................................................ ......................... 114 table 9-34. recomm ended transformers........................................................................................... .................... 115 table 10-1. register address map ............................................................................................... ........................... 117 table 11-1. global register bit map............................................................................................ ............................ 119 table 11-2. port register bit map .............................................................................................. ............................. 119 table 11-3. bert register bit map .............................................................................................. .......................... 120 table 11-4. line register bit map ............................................................................................. ............................. 121 table 11-5. hdlc register bit map .............................................................................................. .......................... 121 table 11-6. feac register bit map .............................................................................................. .......................... 122 table 11-7. trail trace register bit map....................................................................................... .......................... 123 table 11-8. t3 register bit map................................................................................................ .............................. 123 table 11-9. e3 g.751 register bit map.......................................................................................... ......................... 124 table 11-10. e3 g.832 register bit map......................................................................................... ........................ 125 table 11-11. global register map............................................................................................... ............................ 126 table 11-12. port register map................................................................................................. .............................. 133 table 11-13. bert register map................................................................................................. ........................... 144 table 11-14. transmit side b3zs/hdb3 li ne encoder/decoder register map ..................................................... 151 table 11-15. receive side b3zs/hdb3 li ne encoder/decoder register map ...................................................... 152 table 11-16. transmit side hdlc register map ................................................................................... ................. 156 table 11-17. receive side hdlc register map .................................................................................... ................. 159 table 11-18. feac transmit side register map ................................................................................... ................. 163
ds3170 ds3/e3 single-chip transceiver 11 of 233 table 11-19. feac receiv e side register map .................................................................................... ................. 165 table 11-20. transmit side tr ail trace register map............................................................................ ................. 168 table 11-21. trail trace rece ive side register map............................................................................. ................. 169 table 11-22. transmit ds3 framer register map .................................................................................. ................ 174 table 11-23. receive ds3 framer register map ................................................................................... ................ 176 table 11-24. transmit g.751 e3 framer register map ............................................................................. ............. 183 table 11-25. receive g.751 e3 framer register map .............................................................................. ............. 186 table 11-26. transmit g.832 e3 framer register map ............................................................................. ............. 191 table 11-27. receive g.832 e3 framer register map .............................................................................. ............. 194 table 12-1. jtag instruction codes ............................................................................................. .......................... 205 table 12-2. jtag id codes ...................................................................................................... .............................. 206 table 13-1. ds3170 pin assignments for 100-pi n lqfp (sorted by signal name)............................................... 208 table 13-2. ds3170 pin assignments fo r 100-pin lqfp (sor ted by pin #) .......................................................... . 209 table 13-3. ds3170 pin assignments for 100-ba ll csbga (sorted by signal name)........................................... 210 table 13-4. ds3170 pin assignments for 100-ball csbga (sorte d by ball #) ...................................................... 2 11 table 15-1. thermal inform ation for 100- pin csbga .............................................................................. ............... 215 table 15-2. thermal info rmation for 100-pin lqfp ............................................................................... ................. 215 table 16-1. recommended dc operating co nditions ................................................................................ ............ 216 table 16-2. dc electric al characteristics ...................................................................................... .......................... 216 table 16-3. output pin drive ................................................................................................... ................................ 217 table 17-1. framer interface timing ............................................................................................ ........................... 220 table 17-2. system port interface timing ....................................................................................... ........................ 220 table 17-3. misc timing ........................................................................................................ .................................. 221 table 17-4. overhead port timing ............................................................................................... ........................... 221 table 17-5. spi bus mode timing................................................................................................ ........................... 222 table 17-6. micro interface timing ............................................................................................. ............................. 224 table 17-7. ds3 waveform template .............................................................................................. ....................... 227 table 17-8. ds3 waveform te st parameters and limits ............................................................................ ............ 227 table 17-9. e3 waveform te st parameters and limits............................................................................. .............. 228 table 17-10. receiver input characteristics?ds3 mode........................................................................... ............ 230 table 17-11. receiver input characteristics?e3 mode ............................................................................ ............. 230 table 17-12. transmitter output characteristics?ds3 modes ...................................................................... ........ 231 table 17-13. transmitter output characteristics?e3 mode........................................................................ ........... 231 table 17-14. jtag interface timing............................................................................................. ........................... 232
ds3170 ds3/e3 single-chip transceiver 12 of 233 2 applications  access concentrators  multiservice access platforms  atm and frame relay equipment  routers and switches  sonet/sdh adm  sonet/sdh muxes  pbxs  digital cross connect  pdh multiplexer/demultiplexer  test equipment  integrated access device (iad) figure 2-1 show s a ds3170 application. figure 2-1. ds3/e3 line card digital cross connect (dcs) t3/e3 trans- formers ds3/e3 line ds3/e3 backplane signals t3/e3 line card (#1) t3/e3 trans- formers ds3/e3 line t3/e3 line card (#n) ds3/e3 backplane signals ds3170 ds3/e3 sct t3/e3 trans- formers t3/e3 line card (#n+1) ds3/e3 backplane singals t3/e3 trans- formers t3/e3 line card (#n+n) ds3170 ds3/e3 sct ds3170 ds3/e3 sct ds3170 ds3/e3 sct
ds3170 ds3/e3 single-chip transceiver 13 of 233 3 feature details the following sections describe the features provided by the ds3170 sct. 3.1 global features  supports the following transmission formats: c-bit ds3 m23 ds3 g.751 e3 g.832 e3  all controls and status fields are software accessible over either an 8/16-bit microprocessor port or a slave serial bus communication port up to 10 mbps (spi)  on-chip clock rate adapter incorporates two separate internal plls to generate the necessary ds3 or e3 clock used internally from an input clock reference (ds3, e3, 51.84 mhz, 77.76 mhz, or 19.44 mhz) and to provide an output reference clock for external usage  optional transmit loop timed clock mode using the receive clock  optional transmit clock mode using references generated by the internal clock rate adapter (clad)  clock, data and control signals can be inverted to allow a glueless interface to other devices  detection of loss of transmit clock and loss of receive clock  supports gapped 52 mhz clock rates for signals embedded in sonet/sdh  jitter attenuator can be placed in either transmit or receive path when the liu is enabled.  automatic one-second, external or manual update of performance monitoring counters  framing and line code error insertion available 3.2 receive ds3/e3 liu features  performs equalization, gain control, and clock and data recovery for incoming ds3 and e3 signals  agc/equalizer block handles from 0 db to 15 db of cable loss  interfaces directly to a dsx-3 monitor signal (20 db flat loss) using built-in pre-amp  digital and analog loss of signal (los) detectors (ansi t1.231 and itu g.775)  loss-of-lock status indication for internal phase-locked loop 3.3 jitter attenuator features  fully integrated, requires no external components  standards-compliant jitter attenuation/jitter transfer  can be inserted into the receive path or the transmit path  16-bit buffer depth 3.4 receive ds3/e3 framer features  b3zs/hdb3 decoding  frame synchronization for m23 and c-bit parity ds3, g.751 e3 and g.832 e3  detection of rai, ais, ds3 idle signal, loss of signal (los), severely errored framing event (sefe), change of frame alignment (cofa), receipt of b3zs/hdb3 codewords, ds3 application id bit, ds3 m23/c-bit format mismatch, g.751 national bit, and g.832 rdi (ferf), payload type, and timing marker bits  detection and accumulation of bipola r violations (bpv) , code violations (cv), exce ssive zeroes occurrences (exz), f-bit errors, m-bit errors, fas errors, lof occu rrences, p-bit parity errors, cp-bit parity errors, bip-8 errors, and far end block errors (febe)  manual or automatic one-second update of performance monitoring counters  the e3 national bit (sn) is forwarded to a status register bit, the hdlc controller or the feac controller  hdlc controller with 256 byte fifo for ds3 path maintenance data link (pmdl), g.751 national bit, or g.832 nr or gc channels  feac controller with four-codeword fifo for ds3 feac channel  16-byte trail trace buffer compares and stores g.832 trail access point identifier  ds3 m23 c-bits configurable as payload or overhead, stored in registers for software inspection  most framing overhead fields presented on the receive overhead port  framer pass-through mode for clear-channel applications and externally defined frame formats
ds3170 ds3/e3 single-chip transceiver 14 of 233 3.5 transmit ds3/e3 formatter features  frame insertion for m23 and c-bit parity ds3, g.751 e3 and g.832 e3  b3zs/hdb3 encoding  formatter pass-through mode for clear channel applications and externally defined frame formats  generation of rai, ais, ds3 idle signal, and g.832-e3 rdi  automatic or manual insertion of bipolar violations (bpvs), excessive zeroes (exz) occurrences, f-bit errors, m-bit errors, fas errors, p-bit parity errors, cp-bit parity errors, bip-8 errors, and far end block errors (febe)  the e3 national bit (sn) can be sourced from a control register, from the hdlc controller, or from the feac controller  most framing overhead fields can be sourced from transmit overhead port  hdlc controller with 256 byte fifo for ds3 path maintenance data link (pmdl), g.751 national bit, or g.832 nr or gc channels  feac controller for ds3 feac channel can be configured to send one codeword, one codeword continuously, or two different codewords back-to-back to send ds3 line loopback commands  16-byte trail trace buffer sources the g.832 trail access point identifier  insertion of g.832 payload type, and timing marker bits from registers  ds3 m23 c-bits configurable as payload or overhead; as overhead they can be controlled from registers or the transmit overhead port 3.6 transmit ds3/e3 liu features  drives standards-compliant ds3 and e3 waveshapes onto 75  coaxial cable  waveshape template compliance over all cable lengths without lbo adjustment  tri-state line driver outputs support protection switching applications  line driver monitor circuit and alarm output  wide 50  20% transmit clock duty cycle  line build-out (lbo) control  output driver monitor 3.7 clock rate adapter features  generation of the internally needed ds3 (44.736 mhz) and e3 (34.368 mhz) clocks a from single input reference clock  input reference clock can be 77.76 mhz, 51.84 mhz, 44.736mhz, 34.368 mhz, or 19.44 mhz  internally derived clock can be used as references for liu and jitter attenuator  derived clock can be transmitted off-chip for external system use through tclko pin  standards-compliant jitter and wander requirements 3.8 hdlc controller features  designed to handle multiple lapd messages without host intervention  256 byte receive and transmit fifos are large enough to handle the three ds3 pmdl messages (path id, idle signal id, and test signal id) that are sent and received once per second  handles all of the normal layer 2 tasks including zero stuffing/destuffing, fcs generation/checking, abort generation/checking, flag generation/detection, and byte alignment  programmable high or low water marks for the transmit and receive fifos  terminates the path maintenance data link in ds3 c-bit parity mode or the g.751 sn bit or the g.832 nr or gc channels 3.9 feac controller features  designed to handle multiple feac codewords without host intervention  receive feac automatically validates incoming codewords and stores them in a 4-codeword fifo  transmit feac can be configured to send one codeword, one codeword continuously, or two different codewords back-to-back to send ds3 line loopback commands  terminates the feac channel in ds3 c-bit parity mode or the sn bit in e3 mode
ds3170 ds3/e3 single-chip transceiver 15 of 233 3.10 trail trace buffer features  extraction and storage of the incoming g.832 trail access point identifier in a 16-byte receive register  insertion of the outgoing trail access point identifier from a 16-byte transmit register  receive trace identifier unstable status indication 3.11 bit error-rate tester (bert) features  generates and detects pseudo-random patterns and repetitive patterns from 1 to 32 bits in length  supports pattern insertion/extraction in ds3/e3 payload, or entire data stream  large 24-bit error counter allows testing to proceed for long periods without host intervention  errors can be inserted in the generated bert patterns for diagnostic purposes (single bit errors or specific bit- error rates)  off-line monitoring on the receive bert 3.12 loopback features  liu terminal loopback (transmit to receive) - alb  line facility loopback (receive to transmit) with optionally transmitting unframed all-one payload toward system/trunk interface - llb  framer diagnostic loopback (transmit to receive) with optionally transmitting unframed all-one signal toward line/tributary interface - dlb  simultaneous line facility loopback (llb) and framer diagnostic loopback (dlb)  framer payload loopback (receive to transmit) with optionally transmitting unframed all-one payload toward system/trunk interface - plb 3.13 microprocessor interface features  multiplexed or nonmultiplexed 8- or 16-bit control port  intel and motorola bus compatible  global reset input pin  global interrupt output pin  eight programmable i/o pins (gpiox) 3.14 slave serial peripheral interface (spi) features  three-wire synchronous serial data link operating in full duplex slave mode up to 10 mbps  glueless connection and fully compliant to motorola popular communication processors such as mpc8260 and microcontrollers such as m68hc11  software provision ability for active phase of the serial clock (i.e. rising edge versus falling edge), bit ordering of the serial data (most significant first versus least significant bit first) 3.15 test features  five pin jtag port  all functional pins are inout pins in jtag mode  standard jtag instructions: sample/preload, bypass, extest, clamp, highz, idcode  custom jtag instructions to use ram bist  ram bist on all internal ram  hiz pin to force all digital output and inout pins into hiz  test pin for manufacturing scan test modes
ds3170 ds3/e3 single-chip transceiver 16 of 233 4 standards compliance table 4-1. standards compliance specification specification title ansi t1.102-1993 digital hierarchy ? electrical interfaces t1.107-1995 digital hierarchy ? formats specification t1.231-1997 digital hierarchy ? layer 1 in-service digital transmission performance monitoring t1.404-1994 network-to-customer installation ? ds3 metallic interface specification t1.646-1995 broadband isdn ? physical layer specification for user-network interfaces including ds1/atm atm forum af-phy-0034.000 e3 public uni, august, 1995 af-phy-0054.000 ds3 physical layer interface specification, january, 1996 etsi ets 300 686 business telecommunications; 34mbps and 140mbits/s digital leased lines (d34u, d34s, d140u and d140s); network interface presentation, 1996 tbr 24 business telecommunications; 34mbit/s digital unstructured and structured lease lines; attachment requirements for terminal equipment interface , 1997 ets en 300 689 access and terminals (at); 34mbps digital leased lines (d34u and d34s); terminal equipment interface, july 2001 ets 300 689 business telecommunications (btc); 34 mbps digital leased lines (d34u and d34s), terminal equipment interface , v 1.2.1, 2001-07 ietf rfc 2496 definition of managed objects for the ds3/e3 interface type , january, 1999 iso iso 3309:1993 information technology ? telecommunication s & information exc hange betwe en systems ? high level data link control (hdlc) procedures ? frame structure , fifth edition, 1993 itu-t g.703 physical/electrical characteristics of hierarchical digital interfaces, 1991 g.704 synchronous frame structures used at 1544, 6312, 2048, 8488 and 44 736 kbit/s hierarchical levels, july, 1995 g.751 digital multiplex equipment operating at the third order bit rate of 34,368 kbit/s and the fourth order bit rate of 139,264 kbit/s and using positive justification, 1993 g.775 loss of signal (los) and alarm indication signal (ais) defect detection and clearance criteria, november, 1994 g.823 the control of jitter and wander within digital networks which are based on the 2048 kbit/s hierarchy , 1993 g.824 the control of jitter and wander within digital networks that are based on the 1544kbps hierarchy , 1993 g.832 transport of sdh elements on pdh networks ? frame and multiplexing structures, november, 1995 i.432 b-isdn user-network interface ? physical layer specification, march, 1993 o.151 error performance measuring equipment operating at the primary rate and above, october, 1992 q.921 isdn user-network interface ? data link layer specification , march 1993 telcordia gr-499-core transport systems generic requirements (tsgr): common requirements, issue 2, december 1998 gr-820-core generic digital transmission surveillance , issue 1, november 1994 ieee ieee std 1149- 1990 ieee standard test access port and boundary-scan architecture, (includes ieee std 1149-1993) october 21, 1993
ds3170 ds3/e3 single-chip transceiver 17 of 233 5 acronyms and glossary definition of the terms used in this data sheet:  ccm?clear-channel mode  clad?clock rate adapter  clear channel?a datastream with no framing included, also known as unframed  frm?frame mode  fsct?framer single-chip transceiver mode  hdlc?high-level data-link control  packet?hdlc packet  sct?single-chip transceiver (framer and liu)  sct mode?ds3/e3 framer and liu  unchannelized?see clear channel
ds3170 ds3/e3 single-chip transceiver 18 of 233 6 major operational modes the major operational modes are determined by the fm[2:0] framer mode bits, as well as a few other control bits. unused features are powered down and the data paths are held in reset. the configuration registers of the unused features can be written to and read from. some of the io pins change functions in different operational modes. the line interface operational modes are determined by the lm[2:0] bits. 6.1 ds3/e3 framed liu mode frame mode fm[2:0] ds3 c-bit framed 000 ds3 m23 framed 001 e3 g.751 framed 010 e3 g.832 framed 011 liu mode lm[2:0] tzsd & rzsd tlen port.cr2 ja off, b3zs or hdb3 001 0 0 ja rx, b3zs or hdb3 010 0 0 ja tx, b3zs or hdb3 011 0 0 ja off, ami 001 1 0 ja rx, ami 010 1 0 ja tx, ami 011 1 0
ds3170 ds3/e3 single-chip transceiver 19 of 233 figure 6-1. ds3/e3 framed liu mode tsofo/tden rlclk rxp rxn tpos/tdat tneg tlclk ds3/e3 transmit liu ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst hdlc feac txp txn llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer roh rohclk rohsof toh tohclk tohsof rser rclko/rgclk rsofo/rden ds3/e3 receive liu tais tua1 tohen clock rate adapter refclk mode int gpio[8:1] width rdy tclko/tgclk plb alb ua1 gen rpos/rdat rneg/rclv rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder serial interface mode: spi (sclk, mosi, and miso) a[0]/bswap spi tclki tser tsofi tx bert rx bert
ds3170 ds3/e3 single-chip transceiver 20 of 233 6.2 ds3/e3 unframed liu mode the frame mode determines the clad clock rate, liu mode and selects b3zs or hdb3. frame mode fm[2:0] ds3 unframed 100 e3 unframed 110 liu mode lm[2:0] tzsd & rzsd tlen port.cr2 ja off, b3zs or hdb3 001 0 0 ja rx, b3zs or hdb3 010 0 0 ja tx, b3zs or hdb3 011 0 0 ja off, ami 001 1 0 ja rx, ami 010 1 0 ja tx, ami 011 1 0 figure 6-2. ds3/e3 unframed liu mode tden rlclk rxp rxn tpos tneg tlclk ds3/e3 transmit liu ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst txp txn llb dlb rser rclko rden ds3/e3 receive liu tais tua1 clock rate adapter refclk mode int gpio[8:1] width rdy tclko plb alb ua1 gen rpos rneg rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder serial interface mode: spi a[0]/bswap spi tclki tser tx bert rx bert (sclk, mosi, and miso)
ds3170 ds3/e3 single-chip transceiver 21 of 233 6.3 ds3/e3 framed pos/neg mode frame mode fm[2:0] ds3 c-bit framed 000 ds3 m23 framed 001 e3 g.751 framed 010 e3 g.832 framed 011 liu mode lm[2:0] tzsd & rzsd tlen port.cr2 liu off, b3zs or hdb3 000 0 1 liu off, ami 000 1 1 figure 6-3. ds3/e3 framed pos/neg mode tsofo/tden rlclk tpos tneg tlclk ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer roh rohclk rohsof toh tohclk tohsof rser rclko/rgclk rsofo/rden tais tua1 tohen clock rate adapter refclk mode int gpio[8:1] width rdy tclko/tgclk plb alb ua1 gen rpos rneg rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder serial interface mode: spi a[0]/bswap spi tclki tser tsofi tx bert rx bert (sclk, mosi, and miso)
ds3170 ds3/e3 single-chip transceiver 22 of 233 6.4 ds3/e3 unframed pos/neg mode the frame mode determines the clad clock rate if used as the transmit clock and selects b3zs or hdb3. frame mode fm[2:0] ds3 unframed 100 e3 unframed 110 liu mode lm[2:0] tzsd & rzsd tlen port.cr2 liu off, b3zs or hdb3 000 0 1 liu off, ami 000 1 1 figure 6-4. ds3/e3 unframed pos/neg mode tden rlclk tpos tneg tlclk ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst llb dlb rser rclko rden tais tua1 clock rate adapter refclk mode int gpio[8:1] width rdy tclko plb ua1 gen rpos rneg rst b3zs/ hdb3 encoder b3zs/ hdb3 decoder serial interface mode: spi a[0]/bswap spi tclki tser tx bert rx bert alb (sclk, mosi, and miso)
ds3170 ds3/e3 single-chip transceiver 23 of 233 6.5 ds3/e3 framed uni mode frame mode fm[2:0] ds3 c-bit framed 000 ds3 m23 framed 001 e3 g.751 framed 010 e3 g.832 framed 011 liu mode lm[2:0] tzsd & rzsd tlen port.cr2 unipolar mode 1xx x 1 figure 6-5. ds3/e3 framed uni mode tsofo/tden rlclk tdat tlclk ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer roh rohclk rohsof toh tohclk tohsof rser rclko/rgclk rsofo/rden tais tua1 tohen clock rate adapter refclk mode int gpio[8:1] width rdy tclko/tgclk plb alb ua1 gen rdat rlcv rst serial interface mode: spi a[0]/bswap spi tclki tser tsofi tx bert rx bert (sclk, mosi, and miso)
ds3170 ds3/e3 single-chip transceiver 24 of 233 6.6 ds3/e3 unframed uni mode the frame mode determines the clad clock rate if used as the transmit clock. frame mode fm[2:0] ds3 unframed 100 e3 unframed 110 liu mode lm[2:0] tzsd & rzsd tlen port.cr2 unipolar mode 1xx x 1 figure 6-6. ds3/e3 unframed uni mode rlclk tdat tlclk ieee p1149.1 jtag test access port d[15:0] a[8:1] ale cs rd / ds wr /r/ w serial or parallel up inteface jtdo jtclk jtms jtdi jtrst llb dlb rser rclko tais tua1 clock rate adapter refclk mode int gpio[8:1] width rdy tclko plb ua1 gen rdat rlcv rst serial interface mode: spi a[0]/bswap spi tclki tser tx bert rx bert alb tden rden (sclk, mosi, and miso)
ds3170 ds3/e3 single-chip transceiver 25 of 233 7 pin descriptions note: in jtag mode, all digital pins are bidirectional to increase the effectiveness of board level atpg patterns for isolation of interconnect failures. 7.1 short pin descriptions table 7-1. ds3170 short pin descriptions ipu (input with pullup), oz (output tri-stateable), oa (analog output), ia (analog input), io (bidirectional in/out) pin name type function bga lqfp line io tlclk o transmit line clock output b7 85 tpos / tdat o transmit positive ami / data e9 67 tneg o transmit negative ami d9 70 txp oa transmit positive analog e1, e2 12, 13 txn oa transmit negative analog f1, f2 16, 17 rlclk i receive clock input a8 81 rxp ia receive positive analog a4 94 rxn ia receive negative analog a3 97 rpos / rdat ia positive ami / data f10 62 rneg / rlcv ia negative ami / line code violation f9 63 ds3/e3 overhead interface toh i transmit overhead c7 83 tohen i transmit overhead enable e10 66 tohclk o transmit overhead clock d7 82 tohsof o transmit overhead start of frame g9 60 roh o receive overhead b6 88 rohclk o receive overhead clock c9 73 rohsof o receive overhead start of frame f8 61 ds3/e3 serial data ds3/e3 overhead interface tclki i transmit line clock input c10 72 tsofi i transmit start of frame input a9 78 tser i transmit serial data b10 75 tclko / tgclk o transmit clock output / gapped clock b9 77 tsofo / tden o transmit framer start of frame / data enable c8 79 rser o receive serial data c6 86 rclko / rgclk o receive / clock output / gapped clock a6 87 rsofo / rden o receive framer start of frame / data enable b8 80 microprocessor interface d[15] io data [15] g8 58 d[14] io data [14] h10 56 d[13] io data [13] h9 55 d[12] io data [12] h8 54 d[11] io data [11] j10 53 d[10] io data [10] j9 52 d[9] io data [9] g6 40 d[8] io data [8] j8 48 d[7]/spi_cpol io data [7] / spi interface clock polarity k8 47 d[6]/spi_cpha io data [6] / spi interface clock phase h7 46 d[5]/spi_swap io data [5:3] / spi bit order swap j7 45 d[4] io data [4] k7 44 d[3] io data [3] h6 43
ds3170 ds3/e3 single-chip transceiver 26 of 233 pin name type function bga lqfp d[2]/spi_sclk io data [2] / spi serial interface clock < 10 mhz j6 42 d[1]/spi_mosi io data [1] / spi serial interface data master-out slave-in k9 50 d[0]spi_miso io data [0] / spi serial interface data master-in slave-out j5 38 a[8] a[7] a[6] a[5] a[4] a[3] a[2] a[1] i address [8:1] h5 j4 h4 k3 j3 h3 k2 j2 36 35 33 31 30 29 28 27 a[0]/bswap address [0] / byte swap mode k5 37 ale i address latch enable g4 32 cs i chip select (active low) a1 1 rd/ds i read strobe (active low) / data strobe (active low) b2 2 wr / r/ w i write strobe (active low) / r/w select c2 5 rdy oz ready handshake (active low) j1 25 int o interrupt (open drain active low) d8 71 mode i mode select (rd/wr or ds strobe mode) f3 18 width i width select (8 or 16 bit interface) h2 23 spi i spi serial bus mode c3 4 misc i/o gpio[8] gpio[7] gpio[6] gpio[5] gpio[4] gpio[3] gpio[2] gpio[1] io general purpose io [8:1] d4 d3 g5 f6 g7 f7 e7 e8 7 8 39 49 57 64 65 68 test i test enable (active low) f5 24 hiz i high impedance test enable (active low) b4 95 rst i reset (active low) e6 74 jtag jtclk i jtag clock a5 91 jtms ipu jtag mode select (with pullup) b3 98 jtdi ipu jtag data input (with pullup) c4 96 jtdo oz jtag data output d5 90 jtrst ipu jtag reset (active low with pullup) e5 99 clad refclk i reference clock h1 22 power vss pwr ground, 0 volt potential c1, k1, k6, g10, a10, a2 6, 26, 41, 59, 76, 100 vdd pwr digital 3.3v b1, d1, k4, k10, d10, a7 3, 9, 34, 51, 69, 84 avddr pwr analog 3.3v for receive liu c5 93 avddt pwr analog 3.3v for transmit liu f4 15 avddj pwr analog 3.3v for jitter attenuator e3 11 avddc pwr analog 3.3v for clad g3 21
ds3170 ds3/e3 single-chip transceiver 27 of 233 pin name type function bga lqfp avssr pwr analog gnd for receive liu b5 92 avsst pwr analog gnd for transmit liu e4 14 avssj pwr analog gnd for jitter attenuator d2 10 avssc pwr analog gnd for clad g1 19 unused unused1 n/a unused d6 89 unused2 n/a unused g2 20 7.2 detailed pin descriptions table 7-2. detailed pin descriptions ipu (input with pullup), oz (output tri-stateable), oa (analog output), ia (analog input), io (bidirectional inout) pin name type pin description line io tlclk o transmit line clock output tlclk : this signal is available when the transmit line interface pins are enabled ( port.cr2. tlen). this clock is typically used as the clock reference for the tdat and tneg signals, but can also be used as the reference for the tsofi, tser, and tsofo / tden signals. this output signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm tpos / tdat o transmit positive ami / data output tpos : when the port line interface is configured for b3zs, hdb3 or ami mode and the transmit line interface pins are enabled ( port.cr2. tlen), a high on this pin indicates that a positive pulse should be transmitted on the line. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclk line clock output pins, but it can be referenced to the tclko, tclki, rlclk or rclko pins. this output signal can be disabled when the tx liu is enabled. this output signal can be inverted. tdat : when the port line interface is configured for uni mode and the transmit line interface pins are enabled ( port.cr2. tlen), the un-encoded transmit signal is output on this pin. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclk line clock output pins, but it can be referenced to the tclko, tclki, rlclk or rclko pins this output signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm
ds3170 ds3/e3 single-chip transceiver 28 of 233 pin name type pin description tneg o transmit negative ami / line oh mask tneg : when the port line is configured for b3zs, hdb3 or ami mode and the transmit line interface pins are enabled ( port.cr2. tlen), a high on this pin indicates that a negative pulse should be transmitted on the line. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tlclk line clock output pins, but it can be referenced to the tclko, tclki, rlclk or rclko pins. this output signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm txp oa transmit positive analog txp : this pin and the txn pin form a differential ami output which is coupled to the outbound 75  coaxial cable through a 2:1 step-down transformer ( figure 1-1 ). this output is enabled when the tx liu is enabled and the output is enabled to be driven. when it is not enabled, it is in a high impedance state. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm txn oa transmit negative analog txn : this pin and the txp pin form a differential ami output which is coupled to the outbound 75  coaxial cable through a 2:1 step-down transformer ( figure 1-1 ). this output is enabled when the tx liu is enabled and the output is enabled to be driven. when it is not enabled, it is in a high impedance state. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm rxp ia receive positive analog rxp : this pin and the rxn pin form a differential ami input which is coupled to the outbound 75  coaxial cable through a 2:1 step-up transformer ( figure 1-1 ). this input is used when the rx liu is enabled and is ignored when the liu is disabled. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm rxn ia receive negative analog rxn : this pin and the rxp pin form a differential ami input which is coupled to the outbound 75  coaxial cable through a 2:1 step-up transformer ( figure 1-1 ). this input is used when the liu is enabled and is ignored when the liu is disabled. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm rlclk i receive line clock input rlclk : this clock is typically used for the reference clock for the rpos / rdat, rneg / rlcv signals but can also be used as the reference clock for the rser, rsofo / rden, tsofi, tser, tsofo / tden, tpos / tdat and tneg signals. this input is ignored when the liu is enabled. this input signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm
ds3170 ds3/e3 single-chip transceiver 29 of 233 pin name type pin description rpos / rdat iad receive positive ami / data rpos : when the port line is configured for b3zs, hdb3 or ami mode and the liu is disabled, a high on this pin indicates that a positive pulse has been detected using an external liu. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclk line clock input pins, but it can be referenced to the rclko output pins. this input signal can be inverted. rdat : when the port line interface is configured for uni mode, the un-encoded receive signal is input on this pin. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclk line clock input pins, but it can be referenced to the rclk output pins. this input signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm rneg / rlcv iad receive negative ami / line code violation / line oh mask input rneg : when the port line is configured for b3zs, hdb3 or ami mode and the liu is disabled, a high on this pin indicates that a negative pulse has been detected using an external liu. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclk line clock input pins, but it can be referenced to the rclko output pins. this input signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm rlcv : when the port line interface is configured for uni mode, the bpv counter in the encoder/decoder block is incremented each clock when this signal is high. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the rlclk line clock input pins, but it can be referenced to the rclko output pins. this input signal can be inverted. ds3/e3 overhead interface toh i transmit overhead toh : when the port framer is configured for one of the ds3 or e3 framing modes, this signal will be used to over-write the ds3 or e3 framing overhead bits when tohen is active. in t3 mode, the x-bits, p-bi ts, m-bits, f-bits, and c-bits are input. in g.751 e3 mode, all of the fas, rai, and national use bits are input. in g.832 e3 mode, all of the fa1, fa2, em, tr, ma, nr, and gc bytes are input. the tohsof signal marks the start of the framing bit sequence. this signal is sampled at the same time as the tohclk signal transitions high to low. this signal can be inverted. tohen i transmit overhead enable / start of frame input tohen : when the port framer is configured for one of the ds3 or e3 framing modes, this signal will be used the determine which ds3 or e3 framing overhead bits to over- write with the signal on the toh pin. the tohsof signal marks the start of the framing bit sequence. this signal is sampled at the same time as the tohclk signal transitions high to low. this signal can be inverted.
ds3170 ds3/e3 single-chip transceiver 30 of 233 pin name type pin description tohclk o transmit overhead clock tohclk : when the port framer is configured for one of the ds3 or e3 framing modes, this clock is used for the transmit overhead port signals toh, tohen and tohsof. the tohsof output signal is updated and the toh and tohen input signals are sampled at the same time this clock signal transitions from high to low. the external logic is expected to sample tohsof signal and update the toh and tohen signals on the rising edge of this clock signal. this clock is a low frequency clock. this signal can be inverted. tohsof o transmit overhead start of frame tohsof : when the port framer is configured for one of the ds3 or e3 framing modes, this signal is used to mark the start of a ds3 or e3 overhead sequence on the toh pin. in t3 mode, the first x-bit is marked. in g.751 e3 mode, the first bit of the fas word is marked. in g.832 e3 mode, the first bit of the fa1 byte is marked. the sequence starts on the same high to low transition of the tohclk clock that this signal is high. this signal is updated at the same time as the tohclk signal transitions high to low. this signal can be inverted. roh o receive overhead roh : when the port framer is configured for one of the ds3 or e3 framing modes, this signal outputs the value of the receive overhead bits. the rohsof signal marks the start of the framing bit sequence. in t3 mode, the x-bits, p-bits, m-bits, f-bits, and c-bits are output (note: in m23 mode, the c-bits are extracted even though they are marked as data at the payload interface). in g.751 e3 mode, all of the fas, rai, and national use bits are output. in g.832 e3 mode, all of the fa1, fa2, em, tr, ma, nr, and gc bytes are output. this signal is updated at the same time as the rohclk signal transitions high to low. this signal can be inverted. rohclk o receive overhead clock rohclk : when the port framer is configured for one of the ds3 or e3 framing modes, this clock is used for the receive overhead port signals roh and rohsof. the rohsof and roh output signals are updated at the same time this clock signal transitions from high to low. the external logic is expected to sample rohsof and roh signal on the rising edge of this clock signal. this clock is a low frequency clock. this signal can be inverted. rohsof o receive overhead start of frame rohsof : when the port framer is configured for one of the ds3 or e3 framing modes this signal is used to mark the start of a ds3 or e3 overhead sequence on the roh pins. in t3 mode, the first x-bit is marked. in g.751 e3 mode, the first bit of the fas word is marked. in g.832 e3 mode, the first bit of the fa1 byte is marked. the sequence starts on the same high to low transition of the rohclk clock that this signal is high. this signal is updated at the same time as the rohclk signal transitions high to low. this signal can be inverted. ds3/e3 serial data overhead interface tclki i transmit line clock input tclki : this clock is typically used for the reference clock for the tsofi, tser, and tsofo / tden signals but can also be used as the reference for the tpos / tdat and tneg signals. this clock is not used when the part is in loop time mode or the clad clocks are used as the transmit clock source. ( port.cr3 .cladc) this input signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm
ds3170 ds3/e3 single-chip transceiver 31 of 233 pin name type pin description tsofi i transmit start of frame input see table 9-20 . tsofi : this signal can be used to align the start of the ds3 or e3 frames on the tser pin to an external signal. in framed modes, the tsofi signal can be used to align the start of frame signal position on the tser/toh pin to the rising edge of a signal on this pin. the signal edge does not need to occur on every frame and can be tied high or low. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclki transmit clock input pins, but it can be referenced to the tlclk, tclko, rclko and rlclk clock pins. this signal can be inverted. tser i transmit serial data tser : when the port framer is configured for either the ds3 or e3 framed modes, this pin is used as the source of the ds3/e3 payload data. when the port is configured for a clear channel mode, this pin is used as the source of the ds3/e3 data signal. the signal is sampled on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is sampled on the falling edge of the clock. the signal is typically referenced to the tclki transmit clock input pins, but it can be referenced to the tlclk, tclko / tgclk, rclko and rlclk clock pins this signal can be inverted. o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm tclko / tgclk o transmit clock output / gapped clock see table 9-22 . tclko : when tclko is selected by port.cr3 .tclks, this clock output is enabled. this clock is the same clock as the internal framer transmit clock. this clock is typically used for the reference clock for the tsofi, tser, and tsofo / tden signals but can also be used as the reference for the tpos / tdat and tneg signals. this signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm tgclk : when tgclk is selected by port.cr3 .tclks, this gated output clock is enabled. this gapped clock is the same clock as the internal framer transmit clock and is gated by tden. this clock is typically used for the reference clock for the tser signal. this signal can be inverted.
ds3170 ds3/e3 single-chip transceiver 32 of 233 pin name type pin description tsofo / tden o framer start of frame / data enable see table 9-21 . tsofo : when the port framer is configured for the ds3 or e3 framed modes and the tsofo pin function is selected, this signal is used to indicate the start of the ds3/e3 frame on the tser pin. this signal pulses high three clocks before the first overhead bit in a ds3 or e3 frame that will be input on tser. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclki transmit clock input pins, but it can be referenced to the tlclk, tclko, rclko and rlclk clock pins. this signal can be inverted. tden : when the port framer is configured for the ds3 or e3 framed modes and the tden pin function is selected, this signal is used to mark the ds3/e3 frame bits on the tser pin. the signal goes high three clocks before the start of ds3/e3 payload bits and goes low three clocks before the end of the ds3/e3 payload bits. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the tclki transmit clock input pins, but it can be referenced to the tlclk, tclko, rclko and rlclk clock pins. this signal can be inverted. rser o receive serial data rser : when the port framer is configured for the ds3 or e3 framed modes, this pin outputs the receive data signal from the liu or receive line pins. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclko receive clock output pin, but it can be referenced to the rgclk and rlclk clock pins. this signal can be inverted o ds3: 44.736 mbps + 20ppm o e3: 34.368 mbps + 20ppm rclko / rgclk o receive clock output / gapped clock see table 9-24 . rclko : when the port framer is configured for the ds3 or e3 framed modes and rclko is selected, this clock output signal is active. it is the same as the internal receive framer clock. this clock is typically used for the reference clock for the rser, rsofo / rden signals but can also be used as the reference for the rpos / rdat, rneg / rlcv, tsofi, tser, tsofo / tden, tpos / tdat and tneg signals. this signal can be inverted. o ds3: 44.736 mhz + 20 ppm o e3: 34.368 mhz + 20 ppm rgclk : when the port is configured for ds3/e3 framed mode and rgclk is selected, this gated clock output signal is active. it is the same as the internal receive framer clock gated by rden. this clock is typically used for the reference clock for the rser. this signal can be inverted rsofo / rden o receive framer start of frame /data enable see table 9-23 . rsofo : when the port framer is configured for the ds3 or e3 framed modes and the rsofo pin function is enabled, this signal is used to indicate the start of the ds3/e3 frame. this signal indicates the first ds3/e3 overhead bit on the rser pin when high. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclko receive clock output pin, but it can be referenced to the rlclk clock input pin. this signal can be inverted. rden : when the port framer is configured for the ds3 or e3 framed modes and the rden p in function is enabled, this si g nal is used to indicate the ds3/e3 p a y load bit
ds3170 ds3/e3 single-chip transceiver 33 of 233 pin name type pin description positions of the data on the rser pin. the signal goes high during each ds3/e3 payload bit and goes low during each ds3/e3 overhead bit. the signal is updated on the positive clock edge of the referenced clock pin if the clock pin signal is not inverted, otherwise it is updated on the falling edge of the clock. the signal is typically referenced to the rclko receive clock output pin, but it can be referenced to the rlclk clock input pin. this signal can be inverted. microprocessor interface d[15:8] io upper 8 bits of the bi-directional 16 or 8 bit data bus d[15:8] : upper bits of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. the upper 8 bits are not used in 8 bit bus mode. not driven when cs =1 or rst =0. d[7]/ spi_cpol io bit 7 of bi-directional data bus / spi bus clock polarity d[7] : bit 7 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. spi_cpol: this signal selects the clock polarity when spi = 1. see section 7.3.4.1 for detailed timing and functionality information. default setting is low. d[6]/ spi_cpha io bit 6 of bi-directional data bus / spi bus clock phase d[6] : bit 6 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. spi_cpha: this signal selects the clock phase when spi = 1. see section 7.3.4.1 for detailed timing and functionality information. default setting is low. d[5]/ spi_swap io bit 5 of bi-directional data bus / spi bit order swap d[5] : bit 5 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. spi_swap : this signal is active when spi=1. the address and data bit order is swapped when spi_swap is high. the r/w and b bit positions are never changed in the control word. 0 = msb is transmitted and received first. 1 = lsb is transmitted and received first. d[4:3] io bits 4,3 of bi-directional data bus d[4:3] : bits 3,4 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. d[2]/ spi_sclk io bit 2 of bi-directional data bus / spi serial clock input < 10 mhz d[2] : bit 2 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. spi_sclk: spi serial clock input when spi = 1. d[1]/ spi_mosi io bit 1 of bi-directional data bus / spi serial bus master-out slave-in d[1] : bit 1 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. spi_mosi: spi serial data input (master-out slave-in) when spi = 1. d[0]/ spi_miso io bit 0 of bi-directional data bus / spi serial bus master-in slave-out d[0] : bit 0 of the 16-bit or 8-bit data bus used to input data during register writes, and data outputs during register reads. not driven when cs =1 or rst =0. spi_miso: spi serial data output (master-in slave-out) when spi = 1. a[8:1] i address bus (minus lsb) / device address [8:1] a[8:1] : identifies the specific 16 bit registers, or group of 8 bit registers, being accessed. a[0] / bswap address bus lsb / byte swap / device address [0] a[0] : this signal is connected to the lower address bit in 8 bit systems. (width=0) 1 = output register bits 15:8 on d[7:0], d[15:8] not driven 0 = output register bits 7:0 on d[7:0], d[15:8] not driven bswap : this signal is tied high or low in 16 bit systems. (width=1) 1 = output register bits 15:8 on d[7:0], 7:0 on d[15:8] 0 = output register bits 7:0 on d[7:0], 15:8 on d[15:8] ale i address latch enable ale : this si g nal is used to latch the address on the a [ 10:0 ] p ins in multi p lexed
ds3170 ds3/e3 single-chip transceiver 34 of 233 pin name type pin description address systems. when it is high the address is fed through the address latch to the internal logic. when it transitions to low, the address is latched and held internally until the signal goes back high. ale should be tied high for nonmultiplexed address systems. cs i chip select (active low) cs : this signal must be low during all accesses to the registers rd / ds i read strobe (active low) / data strobe (active low) rd : read strobe mode (mode=0): rd is low during a register read. ds : data strobe mode (mode=1): ds is low during either a register read or a write. wr / r/ w i write strobe (active low) / r/w select wr : write strobe mode (mode=0): wr is low during a register write. r/ w : data strobe mode (mode=1): r/ w is high during a register read cycle, and low during a register write cycle. rdy oz ready handshake (active low) rdy : this ready signal is driven low when the current read or write cycle can progress. when the current read or write cycle is not ready it is driven high. when device is not selected it is not driven. not driven when rst =0 or cs =1. int oz interrupt (active low) int : this interrupt signal is driven low when an event is detected on any of the enabled interrupt sources in any of the register banks. when there are no active and enabled interrupt sources, the pin can be programmed to either drive high or not drive high. the reset default is to not drive high when there are no active and enabled interrupt source. all interrupt sources are disabled when rst =0 and they must be programmed to be enabled. not driven when rst =0. mode i mode select rd / wr or ds strobe mode mode : 1 = data strobe mode, 0 = read/write strobe mode width i data bus width select 8 or 16-bit interface width : 1 = 16-bits, 0 = 8 bits spi i spi serial bus mode select spi : 1 = spi serial bus mode, 0 = parallel bus mode misc i/o gpio1 io general purpose io 1 gpio1 : this signal is configured to be a general purpose io pin, or an alarm output signal. gpio2 io general purpose io 2 gpio2 : this signal is configured to be a general purpose io pin, or the 8krefo output signal, or an alarm output signal. gpio3 io general purpose io 3 gpio3 : this signal is configured to be a general purpose io pin. gpio4 io general purpose io 4 gpio4 : this signal is configured to be a general purpose io pin, or the 8krefi input signal. when configured for 8krefi mode the signal frequency should be 8,000 hz +/- 500 ppm and about 50% duty cycle. gpio5 io general purpose io 5 gpio5 : this signal is configured to be a general purpose io pin, or an alarm output signal. gpio6 io general purpose io 6 gpio6 : this signal is configured to be a general purpose io pin, or the tmei input signal. when configured for tmei input, the signal low time and high time must be greater than 500 nsec. gpio7 io general purpose io 7
ds3170 ds3/e3 single-chip transceiver 35 of 233 pin name type pin description gpio7 : this signal is configured to be a general purpose io pin. gpio8 io general purpose io 8 gpio8 : this signal is configured to be a general purpose io pin, or the pmu input signal. when configured for pmu input, the signal low time and high time must be greater than 500 nsec. test i test enable (active low) test : this signal enables the internal scan test mode when low. for normal operation tie high. this is an asynchronous input. hiz i high impedance test enable (active low) hiz : this signal puts all digital output and bi-directional pins in the high impedance state when it low and jtrst is low. for normal operation tie high. this is an asynchronous input. rst i reset (active low) rst : this signal resets all the internal processor registers and logic when low. this pin should be low while power is applied and set high after the power is stable. this is an asynchronous input. jtag jtclk i jtag clock jtclk : this clock input is typically a low frequency (less than 10 mhz) 50% duty cycle clock signal. jtms ipu jtag mode select (with pullup) jtms : this input signal is used to control the jtag controller state machine and is sampled on the rising edge of jtclk. jtdi ipu jtag data input (with pullup) jtdi : this input signal is used to input data into the register that is enabled by the jtag controller state machine and is sampled on the rising edge of jtclk. jtdo oz jtag data output jtdo : this output signal is the output of an internal scan shift register enabled by the jtag controller state machine and is updated on the falling edge of jtclk. the pin is in the high impedance mode when a register is not selected or when the jtrst signal is high. the pin goes into and exits the high impedance mode after the falling edge of jtclk jtrst ipu jtag reset (active low with pullup) jtrst : this input forces the jtag controller logic into the reset state and forces the jtdo pin into high impedance when low. this pin should be low while power is applied and set high after the power is stable. the pin can be driven high or low for normal operation, but must be high for jtag operation. clad refclk i reference clock clki : this pin must have a clock which is either 44.736 mhz, 34.368 mhz, 77.76 mhz, 51.84 mhz or 19.44 mhz +/- 20 ppm and transmission quality jitter and wander. no io pins have a timing relationship to this pin. power vss pwr ground, 0 volt potential common to digital core, digital io and all analog circuits vdd pwr digital 3.3v common to digital core and digital io avddr pwr analog 3.3v for receive liu powers receive liu avddt pwr analog 3.3v for transmit liu powers transmit liu avddj pwr analog 3.3v for jitter attenuator powers jitter attenuator avddc pwr analog 3.3v for clad powers clock rate adapter
ds3170 ds3/e3 single-chip transceiver 36 of 233 pin name type pin description avssr pwr analog ground for receive liu avsst pwr analog ground for transmit liu avssj pwr analog ground for jitter attenuator avssc pwr analog ground for clad
ds3170 ds3/e3 single-chip transceiver 37 of 233 7.3 pin functional timing 7.3.1 line io 7.3.1.1 b3zs/hdb3/ami mode transmit pin functional timing there is no suggested time alignment between the txp, txn and tx line signals and the tlclk clock signal. the tx data signal is not a readily available signal, it is meant to represent the data value of the other signals. the txp and txn signals are only available when the line is in b3zs/hdb3 or ami mode and the liu is enabled. the tpos, tneg and tlclk signals are only available when the line is in b3zs/hdb3 or ami mode and the transmit line pins are enabled. the tpos, tneg and tlclk pins can be enabled at the same as the liu is enabled. the tpos and tneg signals change a small delay after the positive edge of the reference clock if the clock pin is not inverted, otherwise they change after the negative edge. the tlclk clock pin is the clock reference typically used for the tpos and tneg signals, but they can be time referenced to the tclki, tclko, rlclk or rclko clock pins. the tpos and tneg pins can be inverted, but the polarity of txp and txn can not be inverted. txp and txn are differential analog output pins. they are biased around ? vdd and pulse above and below the bias voltage by about 1 volt. these signals are connected to the windings of a 1:2 step down transformer and the other winding of the transformer creates the tx line signal. the tx line signal is a bipolar signal that pulses about 1 volt positive and 1 volt negative above and below ground (0 volts). see figure 1-1 for a diagram of the external connections. figure 7-1 and figure 7-2 show the relationship between the analog and the digital outputs. figure 7-1. tx line io b3zs functional timing diagram tlclk tpos tneg (tx data) b3zs codeword (tx line) + - txp txn v v b b b v bv 0 v bias v
ds3170 ds3/e3 single-chip transceiver 38 of 233 figure 7-2. tx line io hdb3 functional timing diagram tlclk tpos tneg (tx data) hdb3 codeword (tx line) + - txp txn v v b b bv bv 0 v bias v 7.3.1.2 b3zs/hdb3/ami mode receive pin functional timing there is no suggested time alignment between the rxp, rxn and rx line signals and the rlclk clock signal. the rx data signal is not an always readily available signal, it is meant to represent the data value of the other signals. the signal on rser in framed mode will be the same as the rx data signal except delayed. the rxp and rxn pins are only available when the line is in b3zs/hdb3 or ami mode and the liu is enabled. the rpos, rneg and rlclk pins are only available when the line is in b3zs/hdb3 or ami mode and the liu is disabled. the rpos and rneg signals are sampled at the rising edge of the reference clock signal if the clock pin is not inverted, otherwise they are sampled at the negative edge. the rlclk clock pin is the clock reference used for the rpos and rneg signals. the rpos and rneg pins can be inverted. rxp and rxn are differential analog input pins. they are biased around ? vdd and pulse above and below the bias voltage by about 1 volt with zero cable length. these signals are connected to the windings of a 1:2 step up transformer and the other winding of the transformer is connected to the rx line signal. the rx line signal is a bipolar signal that pulses about 1 volt positive and 1 volt negative above and below ground (0 volts) with zero cable length. see figure 1-1 for a diagram of the external connections. figure 7-3 and figure 7-4 show the relationship between the analog and the digital outputs. figure 7-3. rx line io b3zs functional timing diagram rlclk rpos rneg (rx data) b3zs codeword (rx line) + - rxp rxn v v b b b v bv 0 v bias v
ds3170 ds3/e3 single-chip transceiver 39 of 233 figure 7-4. rx line io hdb3 functional timing diagram rlclk rpos rneg (rx data) hdb3 codeword (rx line) + - rxp rxn v v b b bv bv 0 v bias v 7.3.1.3 uni mode transmit pin functional timing the tdat pin is available when the line interface is in the uni mode and the transmit line pins are enabled the tdat signal changes a small delay after the positive edge of the reference clock signal if the clock pin is not inverted, other wise they change after the negative edge. the tlclk clock pin is the clock reference typically used for the tdat signal, but the tdat can be time referenced to the tclki, tclko, rlclk or rclko clock pins. the tdat pin can be inverted. please refer to figure 7-5 . figure 7-5. tx line io uni functional timing diagram 7.3.1.4 uni mode receive pin functional timing the rdat pin is available when the line interface is in the uni mode. the rlcv pin is available when the line interface is in the uni mode. all bits on the rdat pin, will come out the rser pin, if the rser pin is enabled. the signal on the rlcv pin enables the bpv counter, which is in the line interface, to increment each clock it is high. the rdat and rlcv signals are sampled at the rising edge of the reference clock signal if the clock pin is not inverted, otherwise they are sampled at the negative edge. the rlclk clock pin is the clock reference used for the rdat and rlcv signals. the rdat and rlcv pins can be inverted. please refer to figure 7-6 . tlclk tdat
ds3170 ds3/e3 single-chip transceiver 40 of 233 figure 7-6. rx line io uni functional timing diagram rlclk rdat rlvc inc bpv counter twice inc bpv counter once 7.3.2 ds3/e3 framing overhead functional timing figure 7-7 shows the relationship between the ds3 receive overhead port pins. figure 7-7. ds3 framing receive overhead port timing roh rohsof rohclk n a fas 10 1234567891011121314 161718192021222324 15 fas 2 fas 3 fas 1 fas 6 fas 5 fas 4 fas 7 fas 8 fas 10 a fas 9 fas 2 fas 1 n fas 3 fas 4 fas 6 fas 8 fas 5 fas 10 fas 9 figure 7-8 shows the relationship between the e3 g.751 receive overhead port pins. figure 7-8. e3 g.751 framing receive overhead port timing roh rohsof rohclk n a fas 10 1234567891011121314 161718192021222324 15 fas 2 fas 3 fas 1 fas 6 fas 5 fas 4 fas 7 fas 8 fas 10 a fas 9 fas 2 fas 1 n fas 3 fas 4 fas 6 fas 8 fas 5 fas 10 fas 9 figure 7-9 shows the relationship between the e3 g.832 receive overhead port pins. figure 7-9. e3 g.832 framing receive overhead port timing roh rohsof rohclk gc 8 gc 7 gc 6 1234567891011121314 161718192021222324 15 fa1 2 fa1 3 fa1 1 fa1 6 fa1 5 fa1 4 fa1 7 fa1 8 fa2 2 fa2 3 fa2 1 fa2 6 fa2 5 fa2 4 fa2 7 fa2 8 em 2 em 3 em 1 em 5 em 4
ds3170 ds3/e3 single-chip transceiver 41 of 233 figure 7-10 shows the relationship between the ds3 transmit overhead port pins. figure 7-10. ds3 framing tran smit overhead port timing toh tohsof tohclk f74 c73 f73 1234567891011121314 161718192021222324 15 f11 x1 f13 c12 f12 c13 f14 f21 c21 x2 f23 c22 f22 c23 f24 f31 c31 p1 c32 f32 tohen c11 figure 7-11 shows the relationship between the e3 g.751 transmit overhead port pins. figure 7-11. e3 g.751 framing transmit overhead port timing toh tohsof tohclk n a fas 10 1234567891011121314 161718192021222324 15 fas 2 fas 3 fas 1 fas 6 fas 5 fas 4 fas 7 fas 8 fas 10 a fas 9 fas 2 fas 1 n fas 3 fas 4 fas 6 fas 8 fas 5 fas 9 fas 9 tohen figure 7-12 shows the relationship between the e3 g.832 transmit overhead port pins. figure 7-12. e3 g.832 framing transmit overhead port timing toh tohclk gc 8 gc 7 gc 6 1234567891011121314 161718192021222324 15 fa1 2 fa1 3 fa1 1 fa1 6 fa1 5 fa1 4 fa1 7 fa1 8 fa2 2 fa2 3 fa2 1 fa2 6 fa2 5 fa2 4 fa2 7 fa2 8 em 2 em 3 em 1 em 5 em 4 tohsof tohen 7.3.3 ds3/e3 serial data interface 7.3.3.1 ds3/e3 framed mode transmit serial interface pin functional timing the tser pin is used to input ds3 or e3 payload data bits in all framing modes as well as the c-bits, which can be treated as payload, in ds3 m23 and e3 g.751 framing modes. the tden signal is used to determine the ds3 or e3 payload bit positions on tser. the tden signal goes high three clocks before the first bit of a payload sequence is clocked into the tser pin and it goes low three clocks before the payload sequence is stopped being clocked in to the tser pin. the tsofo signal pulses high three clocks before the start of the ds3 or e3 overhead bit position on tser. the tsofi pin is used to set the ds3 or e3 frame position. when the tsofi pin transitions low to high, the first ds3/e3 overhead bit position on tser will be forced to align to it figure 7-13 to figure 7-15 show the relationship between the transmit serial interface pins.
ds3170 ds3/e3 single-chip transceiver 42 of 233 figure 7-13. ds3 framed mode tran smit serial interface pin timing tclko or tclki ds3 tser ds3 tden tsofo ds3 tgclk tsofi tser data is overwritten with oh 6 7 8 9 10 11 12 13 12345 1415 figure 7-14. e3 g.751 framed mode transmit serial interface pin timing e3 tser e3 tden e3 tgclk tclko or tclki tsofo tsofi tser data is overwritten with oh 6 7 8 9 10 11 12 13 12345 1415 figure 7-15. e3 g.832 framed mode transmit serial interface pin timing e3 tser e3 tden e3 tgclk tclko or tclki tsofo tser data is overwritten with oh tsofi 6 7 8 9 10 11 12 13 12345 14151617181920 7.3.3.2 ds3/e3 framed mode receive serial interface pin functional timing the rser signal has the ds3 or e3 payload as well as the ds3 or e3 overhead bits. the rden signal is used to enable external logic for payload processing and will be high during the ds3 or e3 payload bits and low during the ds3 or e3 overhead bits. the rgclk signal can also be used to clock only the ds3 or e3 payload bits into external logic since the clock is stopped during the ds3 or e3 overhead bits. the rsofo signal marks the first overhead bit of the ds3 or e3 frame. figure 7-16 to figure 7-18 show the relationship between the receive serial interface pins.
ds3170 ds3/e3 single-chip transceiver 43 of 233 figure 7-16. ds3 framed mode receive serial interface pin timing rclko or rclki ds3 rser ds3 rden rsofo ds3 rgclk x1 6 7 8 9 10 11 12 13 12345 1415 figure 7-17. e3 g.751 framed mode receive serial interface pin timing e3 rser e3 rden a e3 rgclk n fas 1111010000 rclko or rclki rsofo 6 7 8 9 10 11 12 13 12345 1415 figure 7-18. e3 g.832 framed mode receive serial interface pin timing e3 rser e3 rden e3 rgclk fa1 11110110 rclko or rclki rsof fa2 00101000 6 7 8 9 10 11 12 13 12345 14151617181920 7.3.4 microprocessor interface functional timing 7.3.4.1 spi functional timing diagrams note: the transmit and receive order of the address and data bits are selected by the d[5]/spi_swap pin. the r/w (read/write) msb bit and b (burst) lsb bit position is not effected by the d[5]/spi_swap pin setting. 7.3.4.1.1 spi transmission format and cpha polarity when cpha = 0, cs may be de-asserted between accesses. an access is defined as one or two control bytes followed by a data byte. cs cannot be de-asserted between the control bytes, or between the last control byte and the data byte. when cpha = 0, cs may also remain asserted between accesses. if it remains asserted and the burst bit is set, no additional control bytes are expected after the first control byte(s) and data are transferred. if the burst bit is set, the address will be incremented for each additional byte of data transferred until cs is de- asserted. if cs remains asserted and the burst bit is not set, a control byte(s) is expected following the data byte, and the address for the next access will be received from that. anytime cs is de-asserted, the burst access is terminated. when cpha = 1, cs may remain asserted for more than one access without being toggled high and then low again between accesses. if the burst bit is set, the address should increment and no additional control bytes are
ds3170 ds3/e3 single-chip transceiver 44 of 233 expected. if the burst bit is not set, each data byte will be followed by the control byte(s) for the next access. additionally, cs may also be de-asserted between accesses when cpha =1. in the case, any burst access is terminated, and the next byte received when cs is re-asserted will be a control byte. the following diagrams describe the functionality of the spi port for the four combinations of spi_cpol and spi_cpha. they indicate the clock edge that samples the data and the level of the clock during no-transfer events (high or low). since the spi port of the ds3170 acts as a slave device, the master device provides the clock. the user must configure the spi_cpol and spi_cpha pins to describe which type of clock that the master device is providing. figure 7-19. spi serial port access for read mode, spi_cpol=0, spi_cpha = 0 1 a7 a13 a12 a11 a10 a9 a8 d7 d6 d5 d4 d3 d2 d1 d0 lsb msb lsb msb sck cs* mosi miso b a6 a5 a4 a3 a2 a1 lsb msb a0 figure 7-20. spi serial port access for read mode, spi_cpol = 1, spi_cpha = 0 sck cs* 1 a7 a13 a12 a11 a10 a9 a8 d7 d6 d5 d4 d3 d2 d1 d0 lsb msb lsb msb mosi miso b a6 a5 a4 a3 a2 a1 lsb msb a0 figure 7-21. spi serial port access for read mode, spi_cpol = 0, spi_cpha = 1 sck cs* 1 a7 a13 a12 a11 a10 a9 a8 d7 d6 d5 d4 d3 d2 d1 d0 lsb msb lsb msb mosi miso b a6 a5 a4 a3 a2 a1 lsb msb a0 figure 7-22. spi serial port access for read mode, spi_cpol = 1, spi_cpha = 1 sck cs* 1 a7 a13 a12 a11 a10 a9 a8 d7 d6 d5 d4 d3 d2 d1 d0 lsb msb lsb msb mosi miso b a6 a5 a4 a3 a2 a1 lsb msb a0
ds3170 ds3/e3 single-chip transceiver 45 of 233 figure 7-23. spi serial port access for write mode, spi_cpol = 0, spi_cpha = 0 0a13 lsb msb sck cs* mosi miso d7 d6 d5 d4 d3 d2 d1 d0 lsb msb a4 a3 a2 a1 a0 lsb msb a12a11a10a9a8a7a6a5 b figure 7-24. spi serial port access for write mode, spi_cpol = 1, spi_cpha = 0 sck cs* 0 a13 lsb msb mosi miso d7 d6 d5 d4 d3 d2 d1 d0 lsb msb a4 a3 a2 a1 a0 lsb msb a12a11a10a9a8a7a6a5 b figure 7-25. spi serial port access for write mode, spi_cpol = 0, spi_cpha = 1 sck cs* 0a13 lsb msb mosi miso d7 d6 d5 d4 d3 d2 d1 d0 lsb msb a4 a3 a2 a1 a0 lsb msb a12a11a10a9a8a7a6a5 b figure 7-26. spi serial port access for write mode, spi_cpol = 1, spi_cpha = 1 sck cs* 0 a13 lsb msb mosi miso d7 d6 d5 d4 d3 d2 d1 d0 lsb msb a4 a3 a2 a1 a0 lsb msb a12a11a10a9a8a7a6a5 b 7.3.4.2 parallel port interface diagrams figure 7-27 and figure 7-29 show examples of a 16-bit databus and an 8-bit databus, respectively. in 16-bit mode, the a[0]/bswap signal controls whether or not to byte swap. in 8-bit mode, the a[0]/bswap signal is used as the lsb of the address bus (a[0]). the selection of databus size is determined by the width input signal. see also section 9.1.1 .
ds3170 ds3/e3 single-chip transceiver 46 of 233 figure 7-27. 16-bit mode write 0x1234 0x2b0 d[15:0] a[10:1] rd wr cs a[0]/bswap rdy z z note: address 0x2b0 = 0x1234 figure 7-28. 16-bit mode read d[15:0] a[10:1] a[0]/bswap 0x2b0 0x1234 z z note: address 0x2b0 = 0x1234 rd wr cs rdy
ds3170 ds3/e3 single-chip transceiver 47 of 233 figure 7-29. 8-bit mode write 0x34 0x12 0x2b0 0x2b0 d[7:0] a[10:1] a[0]/bswap z z z z note: address 0x2b0 = 0x34 0x2b1 = 012 rd wr cs rdy figure 7-30. 8-bit mode read d[7:0] a[10:1] a[0]/bswap 0x2b0 0x34 z z 0x2b0 0x12 z z note: address 0x2b0 = 0x34 0x2b1 = 012 rd wr cs rdy figure 7-31 and figure 7-32 are examples of databuses without and with byte swapping enabled, respectively. when the a[0]/bswap pin is set to 0, byte swapping is disabled, and when one, byte swapping is enabled. this pin should be static and not change while operating. note: address bit a[0] is not used in 16-bit mode. see also section 9.1.3 .
ds3170 ds3/e3 single-chip transceiver 48 of 233 figure 7-31. 16-bit mode without byte swap 0x1234 0x5678 note: address 0x2b0 = 0x1234 0x2b2 = 0x5678 0x2b0 0x2b2 d[15:0] a[10:1] a[0]/bswap z z z z rd wr cs rdy figure 7-32b 16-bit mode with byte swap 0x3412 0x7856 note: address 0x2b0 = 0x1234 0x2b2 = 0x5678 0x2b0 0x2b2 d[15:0] a[10:1] a[0]/bswap z z z z rd wr cs rdy clearing status latched registers on a read or write access is selectable via the gl.cr1 .lsbcre register bit. clearing on read clears all bits in the register, while the clear on write clears only those bits which are written with a ?1? when the user writes to the status latched register. to use the clear on read method, the user must only read the status latched register. all bits are set to zero after the read. figure 7-33 shows a read of a status latched register and another read of the same register verifying the register has cleared. to use the clear on write method, the user must write the register with ones in the bit locations that he desires to clear. figure 7-34 shows a read, a write, and then a subsequent read revealing the results of clearing of the bits, which he wrote a ?1.? see also section 9.1.6 .
ds3170 ds3/e3 single-chip transceiver 49 of 233 figure 7-33. clear status latched register on read d[15:0] a[10:1] a[0]/bswap 0x1c0 0xffff 0x1c0 0x0000 z z z z rd wr cs rdy figure 7-34. clear status latched register on write d[15:0] a[10:1] a[0]/bswap 0x1c0 0xffff 0x1c0 0x5555 0x1c0 0xaaaa z z z z z z rd wr cs rdy figure 7-35 and figure 7-36 show exaggerated views of the ready signal to describe the difference in access times to write or read to or from various memory locations on the ds3170 device. some registers will have a faster access time than others and if needed, the user can implement the rdy signal to maximize efficiency of read and write accesses.
ds3170 ds3/e3 single-chip transceiver 50 of 233 figure 7-35. rdy signal functional timing write 0x1234 0x0078 0x2b0 0x3a4 d[15:0] a[10:1] a[0]/bswap z z z z rd wr cs rdy figure 7-36. rdy signal functional timing read d[15:0] a[10:1] a[0]/bswap 0x1c0 0xffff 0x3a4 0xffff z z z z rd wr cs rdy see also figure 17-8 and figure 17-9 . 7.3.5 jtag functional timing see section 12.5 .
ds3170 ds3/e3 single-chip transceiver 51 of 233 8 initialization and configuration step 1: check device id code. before any testing can be done, the device id code, which is stored in gl.idr, shoud be checked against the device id code shown below to ensure correct device is being used. current device id codes is: o ds3170 rev 1.0: 004fh step 2: initialize the device. before configuring for operation, make sure the device is in a known condition with all registers set to their default value by initiating a global reset. (see section 9.3 .) a global reset can be initiated via the rst pin or by the global reset bit ( gl.cr1 .rst). a port reset is not necessary since the global reset includes a reset of the port to its default values. step 3: clear the reset. it is necessary to clear the rst bit to begin normal operation. after clearing the rst bit, the device is configured for default mode. default mode: framer: c-bit ds3 liu: disabled step 4: clear the data path resets and the port power-down bit. the default value of the data path resets is one, which keeps the internal logic in the reset status. the user needs to clear the following bits: gl.cr1 .rstdp = 0 port.cr1 .rstdp = 0 port.cr1 .pd = 0 step 5: configure the clad if using the liu, configure the clad (which supplies the clock to the receive liu) via the clad bits in the gl.cr2 register. note: the user must supply a ds3, e3, sts-1, 77.76 mhz, or 19.44 mhz clock to the refclk pin. step 6: select the clock source for the transmitter. loop time (use the receive clock): set port.cr3 .loopt = 1 clad source: set port.cr3 .cladc = 0 tclki source: set port.cr3 .cladc = 1 if using the clad, properly configure the clad by setting the clad bits in gl.cr2. step 7: configure the framing mode and the line mode.. port . cr2 .lm[2:0] = 011 (liu on, ja in rx side) or another setting. see table 9-26 port.cr2. fm[2:0] set to correct mode. see table 9-25. step 8: disable payload ais (downstream ais) and line ais port . cr1 .pais[2:0] = 111 port .cr1.lais[1:0] = 11 step 9: enable the port (for non-liu modes) port . cr2 .tlen = 1
ds3170 ds3/e3 single-chip transceiver 52 of 233 table 8-1. configuration of port register settings mode port.cr1 0x040 port.cr2 0x042 port.cr3 0x044 port.cr4 0x046 ds3 c-bit framed 0x2000 0000 0011 0000 0111 0x0000 0x0000 ds3 m13 framed 0x2000 0000 0011 0000 1111 0x0000 0x0000 e3.751 framed 0x2000 0000 0011 0001 0111 0x0000 0x0000 e3.823 framed 0x2000 0000 0011 0001 111x 0x0000 0x0000 note: the line mode has been configured with the liu enabled and the ja in the receive path (lm[2:0] = 011) for all modes. 8.1 monitoring and debugging to determine if the device is receiving a good signal and that the chip is correctly configured for its environment, check the following status registers. receive loss of lock ? port.sr .rlol: the clock recovery circuit of the liu was unable to recover the clock from the incoming signal. this may indicate that the liu?s master clock does not match the frequency of the incoming signal. verify that the clad is configured to match the clock input on the refclk pin (ds3, e3, sts-1). see table 9-11 . loss of signal ? line.rsr .los: this indicates that the liu is unable to recover the clock and data because there is no signal on the line, or that the signal is attenuated beyond recovery. loss of frame ? t3.rsr1 .lof (or e3751.rsr1 or e3832.rsr1): this indicates that the framer was unable to synchronize to the incoming data. verify that the fm bits have been correctly configured for the correct mode of traffic (ds3, e3 g.751, e3 g.832) other helpful techniques to utilize in diagnosing a problem include using line loopback and diagnostic loopback. these features help to isolate and identify the source of the problem. line loopback will loop the receive input to the transmit output, eliminating the transmit side input from the equation. diagnostic loopback will loop the transmit output before the liu to the receive framer, eliminating the analog receive liu and the receive side analog circuitry. one other potential problem is the line encoding/decoding . the device needs to be configured in the same mode as the far end piece of equipment. if the far end piece of equipment is transmitting and receiving hdb3/b3zs encoded data, the ds3170 also must be configured to do the same. this is controlled by the line.tcr .tzsd and the line.rcr .rzsd bits.
ds3170 ds3/e3 single-chip transceiver 53 of 233 9 functional description 9.1 processor bus interface 9.1.1 spi serial port mode the external processor bus can be configured to operate in spi serial bus mode. see the section 7.3.4.1 for detailed timing diagrams. when spi = 1, spi bus mode is implemented using four signals: clock (clk), master-out slave-in data (mosi), master-in slave-out data (miso), and chip select ( cs ). clock polarity and phase can be set by the d[7]/spi_cpol and d[6]/spi_cpha pins. the order of the address and data bits in the serial stream is selectable using the d[5]/spi_swap pin. the r/w bit is always first and b bit is always last in the initial control word and are not effected by the d[5]/spi_swap pin setting. 9.1.2 8/16 bit bus widths the external processor bus can be sized for 8 or 16 bits using the width pin. when in 8-bit mode (width=0), the address is composed of all the address bits including a[0], the lower 8 data lines d[7:0] are used and the upper 8 data lines d[15:8] are not used and never driven during a read cycle. when in 16-bit mode (width=1), the address bus does not include a[0] (the lsb of the address bus is not routed to the chip) and all 16 data lines d[15:0] are used. see figure 7-27 and figure 7-29 for functional timing diagrams. 9.1.3 ready signal ( rdy ) the rdy signal allows the microprocessor to use the minimum bus cycle period for maximum efficiency. when this signal goes low, the rd or wr cycle can be terminated. see figure 7-35 for functional timing diagrams. note: the rdy signal will not go active if the user attempts to read or write unused registers not assigned to any design blocks. the rdy signal will go active if the user writes or reads reserved registers or unused registers within design blocks. 9.1.4 byte swap modes the processor interface can operate in byte swap mode when the data bus is configured for 16-bit operation. the a[0]/bswap pin is used to determine whether byte swapping is enabled. this pin should be static and not change while operating. when the a[0]/bswap pin is low the upper register bits reg[15:8] are mapped to the upper external data bus lines d[15:8], and the lower register bits reg[7:0] are mapped to the lower external data bus lines d[7:0]. when the a[0]/bswap pin is high the upper register bits reg[15:8] are mapped to the lower external data bus lines d[7:0], and the lower register bits reg[7:0] are mapped to the upper external data bus lines d[15:8]. see figure 7-31 and figure 7-32 for functional timing diagrams. 9.1.5 read-write/data strobe modes the processor interface can operate in either read-write strobe mode or data strobe mode. when mode=0 the read-write strobe mode is enabled and a negative pulse on rd performs a read cycle, and a negative pulse on wr performs a write cycle. when mode=1 the data strobe mode is enabled and a negative pulse on ds when r/ w is high performs a read cycle, and a negative pulse on ds when r/ w is low performs a write cycle. the read-write strobe mode is commonly called the ?intel? mode, and the data strobe mode is commonly called the ?motorola? mode. 9.1.6 clear on read/clear on write modes the latched status register bits can be programmed to clear on a read access or clear on a write access. the global control register bit gl.cr1 .lsbcre controls the mode that all of the latched registers are cleared. when lsbcre=0, the latched register bits will be cleared when the register is written to and the write data has the register bits to clear set. when lsbcre=1, the latched register bits that are set will be cleared when the register is read.
ds3170 ds3/e3 single-chip transceiver 54 of 233 the clear on write mode expects the user to use the following protocol: 1. read the latched status register 2. write to the registers with the bits set that need to be cleared. this protocol is useful when multiple uncoordinated software tasks access the same latched register. each task should only clear the bits with which it is concerned; the other tasks will clear the bits with which they are concerned. the clear on read mode is simpler since the bits that were read as being set will be cleared automatically. this method will work well in a software system where multiple tasks do not read the same latched status register. the latched status register bits in clear on read mode are carefully designed not to miss events that occur while a register is being read when the latched bit has not already been set. refer to figure 7-33 and figure 7-34 . 9.1.7 interrupt and pin modes the interrupt ( int ) pin is configurable to drive high or float when inactive. the gl.cr1 .intm bit controls the pin configuration. if it is set, the int pin will drive high when inactive. after a reset, the int pin will be in high impedance mode until an interrupt source is active and enabled to drive the interrupt pin. 9.1.8 interrupt structure the interrupt structure is designed to efficiently guide the user to the source of an enabled interrupt source. the status bits in the global status ( gl.sr ) and global status latched register ( gl.srl ) are read to determine if the interrupt source is a global event, a global performance monitor update or whether it came from the port. if the interrupt event came from the port then the port status register ( port.sr ) and port status register latched ( port.srl ) can be read to determine if the interrupt source is a common port event like the performance monitor update or liu or whether it came from the ds3/e3 framers, bert, hdlc, feac or trail trace status registers. if the interrupt came from the ds3/e3 framers, bert, hdlc, feac or trail trace status registers, then those registers will need to be read to determine the event that caused the interrupt. the source of an interrupt can be determined by reading three status registers: the global, port and block status registers. when a mode is not enabled, then interrupts from that source will not occur. for example, if e3 framing mode is enabled, an interrupt source that is defined in ds3 framing, but not in e3 framing, cannot create a new interrupt. note that when modes are changed, the latched status bits of the new mode, as well as any other mode, may get set. if the data path reset is set during or after the mode change, the latched status bits will be automatically cleared. if the data path reset is not used to clear the latched status bits, then the registers must be cleared by reading or writing to them based on the register clear method selected.
ds3170 ds3/e3 single-chip transceiver 55 of 233 figure 9-1. interrupt structure gl.isr.pisrn port.isr bit srl bit srl bit srl bit srie bit srie bit srie bit block latched status and interrupt enable registers port interrupt status register global interrupt status register and interrupt enable register gl.isrie. pisrien int port interrupts global interrupts figure 9-1 not only tells the user how to determine which event caused the interrupt, it also tells the user how to enable a particular interrupt. each block has a status register interrupt enable register which must be set in order to enable an interrupt. the next step is to unmask the interrupt at the port level. this is controlled in the global interrupt status register interrupt enable register ( gl.isrie ). now the device is ready to drive the int pin low when a particular status bit gets set. for example, in order to enable ds3 out of frame interrupts, the following registers would need to be written: register bit address value written note t3.rsrie1 . oofie 0x12c 0x0002 unmask oof interrupt gl.isrie .pisrie 0x012 0x0010 unmask port interrupts the following status registers bits will be set upon reception of oof: register bit address value read note t3.rsrl1 . oofl 0x128 0x0002 ds3 out of frame port.isr . fmsr 0x050 0x0001 framer block interrupt active gl.isr .pisr 0x010 0x0010 port interrupt active 9.2 clocks 9.2.1 line clock modes 9.2.1.1 loop timing enabled when loop timing is enabled ( port.cr3 .loopt), the transmit clock source is the same as the receive clock source. the tclki pin is not used as a clock source. because loop timing is enabled, the loopback functions (llb, plb and dlb) do not cause the clock sources to switch when they are activated. the transmit and receive signal pins can be timed to a single clock reference without concern about having the clock source change during loopbacks.
ds3170 ds3/e3 single-chip transceiver 56 of 233 9.2.1.1.1 liu enabled, loop timing enabled in this mode, the receive liu sources the clock for both the receive and transmit logic. the rclko, tclko and tlclk clock output pins will be the same. the transmit or receive line payload signal pins can be timed to any of these clock. the use of the rclko pin as the timing source is suggested. if rclko is used as the timing source, be sure to set port.cr3 .rfts = 0 for output timing. 9.2.1.1.2 liu disabled, loop timing enabled in this mode, the rlclk pin are the source of the clock for both the receive and transmit logic. the rclko, tclko and tlclk clock output pins will both be the same as the rlclk clock. the transmit or receive line payload signals can be timed to any of these clock pins. the use of the rlclk pin as the timing source is suggested. if rlclk is used as the timing source, be sure to set port.cr3.rfts = 1 for input timing. 9.2.1.2 loop timing disabled when loop timing is disabled, the transmit clock source can be different than the receive clock source. the loopback functions, llb, plb and dlb, will cause the clock sources to switch when they are activated. care must be taken when selecting the clock reference for the transmit and receive signals. the most versatile clocking option has the receive line interface signals timed to rlclk, the transmit line interface signals timed to tlclk, the receive framer signals timed to rclko, and the transmit framer signals timed to tclko. this clocking arrangement works in all modes. when llb is enabled, the clock on the tlclk pin will switch to the clock from the rlclk pin or rx liu. it is recommended that the transmit line interface signals be timed to the tlclk pins. if tlclk is used as the timing source, be sure to set port.cr3 .tlts = 0 for output timing. when plb is enabled, the tclki pin will not be used and the internal transmit clock is switched to the internal receive clock. the clock on the tclko pin will switch to the clock from the rlclk pins or rx liu. the framer input signals will be ignored while plb is enabled. it is recommended that the transmit line interface signals be timed to the tclko pins. when dlb is enabled, the internal receive clock is switched to the internal transmit clock which is sourced from the tclki pin or one of the clad clocks, and the clock on the rlclk pin or from the rx liu will not be used. the clock on the rclko pin will switch to the clock on the tclki pins or one of the clad clocks. the receive line signals from the rx liu or line interface pins will be ignored. it is recommended that the receive framer pins be timed to the rclko pin. if tclko is used as the timing source, be sure to set port.cr3 .tfts = 0 for output timing. when both dlb and llb are enabled, the tlclk clock pin are connected to either the rx liu recovered clock or the rlclk clock pin, and the rclko clock pin will be connected to the tclki clock pin or one of the clad clocks. it is recommended that the transmit line signals be timed to the tlclk pin, the receive line interface signals be timed to the rlclk pin, the receive framer signals be timed to the rclko pin, and the transmit framer signals be timed to the tclko pin. 9.2.1.2.1 liu enabled - clad timing disabled ? no lb in this mode, the receive liu sources the clock for the receive logic and the tclki pin sources the clock for the transmit logic. 9.2.1.2.2 liu enabled - clad timing enabled ? no lb in this mode, the receive liu sources the clock for the receive logic and one of the clad clocks sources the clock for the transmit logic. 9.2.1.2.3 liu disabled - clad timing disabled ? no lb in this mode, the rlclk pin source the clock for the receive logic and the tclki pin sources the clock for the transmit logic. 9.2.1.2.4 liu disabled - clad timing enabled ? no lb in this mode, the rlclk pin source the clock for the receive logic and one of the clad clocks sources the clock for the transmit logic.
ds3170 ds3/e3 single-chip transceiver 57 of 233 9.2.2 sources of clock output pin signals the clock output pins can be sourced from many clock sources. the clock sources are the transmit input clocks pin (tclki), the receive clock input pin (rlclk), the recovered clock in the receive liu, and the clock signals in the clock rate adapter circuit (clad). the default clock source for the receive logic is the rlclk pin if the liu is disabled; otherwise the default clock is sourced from the rx liu clock when the rx liu is enabled. the default clock source for the transmit logic is the clad clocks. the liu is enabled based on the line mode bits(lm[2:0]) (see table 9-26 ). the bits lm[2:0], lbm[2:0], loopt and cladc are located in the port configuration registers. liuen is not a register bit; it is a variable based on the line mode bits. table 9-1 decodes the lm bits for liuen selection. table 9-1. liu enable table lm[2:0] liuen liu status 000 0 disabled 001 1 enabled 010 1 enabled 011 1 enabled 1xx 0 disabled table 9-2 identifies the framer clock source and the line clock source depending on the mode that the device is configured. putting the device in loopback will typically mux in a different clock than the normal clock source. table 9-2. all possible clock sources based on mode and loopback mode loopback rx framer clock source tx framer clock source tx line clock source loop timed any rlclk or rxliu same as rx same as rx normal none rlclk or rxliu tclki or clad same as tx normal llb rlclk or rxliu tclki or clad same as rx normal plb rlclk or rxliu same as rx same as rx normal dlb same as tx tclki or clad same as tx normal llb and dlb same as tx tclki or clad rlclk or rxliun
ds3170 ds3/e3 single-chip transceiver 58 of 233 table 9-3 identifies the source of the output signal tlclk based on certain variables and register bits. table 9-3. source selection of tlclk clock signal signal loopt ( port. cr3 ) lbm[2:0] ( port.cr4 ) llb or plb liuen cladc ( port.cr3 ) source 1 xxx na 1 x rx liu 1 xxx na 0 x rlclk 0 010 llb 1 x rx liu 0 110 llb 1 x rx liu 0 010 llb 0 x rlclk 0 110 llb 0 x rlclk 0 011 plb 1 x rx liu 0 011 plb 0 x rlclk 0 000 no x 0 clad 0 001 no x 0 clad 0 100 no x 0 clad 0 10x no x 0 clad 0 111 no x 0 clad 0 000 no x 1 tclki 0 001 no x 1 tclki 0 100 no x 1 tclki 0 10x no x 1 tclki tlclk 0 111 no x 1 tclki figure 9-2 shows the source of the tclko signals. figure 9-2. internal tx clock 0 1 0 1 clad tclki port.cr3. cladc rclko payload loopback tclko table 9-4 identifies the source of the output signal tclko based on certain variables and register bits.
ds3170 ds3/e3 single-chip transceiver 59 of 233 table 9-4. source selection of tclko (internal tx clock) signal loopt port.cr3 lbm[2:0] ( port.cr4 ) liuen cladc ( port.cr3 ) source 1 xxx 1 x rx liu 1 xxx 0 x rlclk 0 plb (011) 1 x rx liu 0 plb (011) 0 x rlclk 0 plb disabled x 0 clad tclko 0 plb disabled x 1 tclki figure 9-3 shows the source of the rclko signals. figure 9-3. internal rx clock 0 1 0 1 rx liu clock rlclk liuen tclko diagnostic loopback rclko table 9-5 identifies the source of the output signal rclko based on certain variables and register bits. table 9-5. source selection of rclko clock signal (internal rx clock) signal loopt port.cr3 lbm[2:0] ( port.cr4 ) liuen cladc ( port.cr3 ) source 1 xxx 1 x rx liu 1 xxx 0 x rlclk 0 dlb disabled 1 x rx liu 0 dlb disabled & alb disabled 0 x rlclk 0 dlb (1xx) x 0 clad 0 dlb (1xx) or alb (001) 0 1 tclki rclko 0 dlb (1xx) 1 1 tclki 9.2.3 line io pin timing source selection the line io pins can use any input clock pin (rlclk or tclki) or output clock pin (tlclk, rclko, or tclko) for its clock pin and meet the ac timing specifications as long as the clock signal is valid for the mode the part is in. the clock select bit for the transmit line io signal group port.cr3 .tlts selects the correct input or output clock timing.
ds3170 ds3/e3 single-chip transceiver 60 of 233 9.2.3.1 transmit line interface pins timing source selection (tpos/tdat, tneg) the transmit line interface signal pin group has the same functional timing clock source as the tlclk pin described in table 9-3 . other clock pins can be used for the external timing. the tlclk transmit line clock output pin is always a valid output clock for external logic to use for these signals when port.cr3 .tlts=0. the transmit line timing select bit (tlts) is used to select input or output clock pin timing. when tlts=0, output clock timing is selected. when tlts=1, input clock timing is selected. if tlts is set for input clock timing and an output clock pin is used, or if tlts is set for output clock timing and an input clock pin is used, then the setup, hold and delay timings, as specified in table 17-1 , will not be valid. there are some combinations of tlts=1 and other modes in which there is no input clock pin available for external timing since the clock source is derived internally from the rx liu or the clad. table 9-6. transmit line interface signal pin valid timing source select loopt lbm[2:0] liuen cladc tlts valid timing to these clock pins 1 xxx x x 0 tlclk, tclko, rclko 1 xxx 0 x 1 rlclk 1 xxx 1 x 1 no valid timing to any input clock pin 0 dlb (100) x x 0 tlclk, tclko, rclko 0 llb (010) or plb (011) x x 0 tlclk, rclko 0 dlb & llb (110) x x 0 tlclk 0 not dlb (100), not llb (010), not plb (011) and not llb & dlb (110) x x 0 tlclk, tclko (default) 0 not llb (010) and not plb (011) and not llb & dlb (110) x 0 1 no valid timing to any input clock pin 0 not llb (010) and not plb (011) and not llb & dlb (110) x 1 1 tclki 0 llb (010) or plb (011) or dlb & llb (110) 0 x 1 rlclk 0 llb (010) or plb (011) or dlb & llb (110) 1 x 1 no valid timing to any input clock pin 9.2.3.2 transmit framer pin timing source selection (tser, tsofi, tsofo/tden) the transmit framer signal pin group has the same functi onal timing clock source as the tclko pin described in table 9-4 . other clock pins can be used for the external timing. the tclko transmit clock output pin is always a valid output clock for external logic to use for these signals when tfts=0. the transmit framer select bit (tfts) is used to select input or output clock pin timing. when tfts=0, output clock timing is selected. when tfts=1, input clock timing is selected. if tfts is set for input clock timing and an output clock pin is used, or if tfts is set for output clock timing and an input clock pin is used, then the setup, hold and delay timings, as specified in table 17-1 , will not be valid. there are some combinations of tfts=1 and other modes in which there is no input clock pin available for external timing since the clock source is derived internally from the rx liu or the clad.
ds3170 ds3/e3 single-chip transceiver 61 of 233 table 9-7. transmit framer pin signal timing source select loopt lbm[2:0] liuen cladc tfts valid timing to these clock pins 1 xxx x x 0 tclko, tlclk, rclko 1 xxx 0 x 1 rlclk 1 xxx 1 x 1 no valid timing to any input clock pin 0 plb (011) or dlb (100) or alb 001) 0 x 0 tclko, tlclk, rclko 0 plb (011) or dlb (100) 1 x 0 tclko, tlclk, rclko 0 dlb & llb (110) x x 0 tclko, rclko 0 llb (010) x x 0 tclko 0 not llb, dlb or plb (00x) x x 0 tclko, tlclk 0 not plb (011) x 0 1 no valid timing to any input clock pin 0 not plb (011) x 1 1 tclki 0 plb (011) 0 x 1 rlclk 0 plb (011) 1 x 1 no valid timing to any input clock pin 9.2.3.3 receive line interface pin timing source selection (rpos/rdat, rneg/rlcv) the receive line interface signal pin group must clocked in with the rlclk clock input pin. when the liu is enabled, the receive line interface pins are not used so there is no valid clock reference. table 9-8. receive line interface pin signal timing source select loopt lbm[2:0] liuen cladc valid timing to these clock pins x xxx 0 x rlclk x xxx 1 x no valid timing to any clock pin 9.2.3.4 receiver framer pin timing source selection (rser, rsofo/rden) the receive framer signal pin group has the same functional timing clock source as the rclko pin described in table 9-5 . other clock pins can be used for the external timing. the rclko receive clock output pin is always a valid output clock for external logic to use for these signals when port.cr3 .rfts=0. the receive framer timing select bit (rfts) is used to select input or output clock pin timing. when rfts=0, output clock timing is selected. when rfts=1, input clock timing is selected. if rfts is set for input clock timing and an output clock pin is used, or if rfts is set for output clock timing and an input clock pin is used, then the setup, hold and delay timings, as specified in table 17-1 , will not be valid. there are some combinations of rfts=1 and other modes in which there is no input clock pin available for external timing since the clock source is derived internally from the rx liu or the clad.
ds3170 ds3/e3 single-chip transceiver 62 of 233 table 9-9. receive framer pin signal timing source select loopt lbm[2:0] liuen cladc rfts valid timing to these clock pins 1 xxx x x 0 rclko, tlclk, tclko 1 xxx 0 x 1 rlclk 1 xxx 1 x 1 no valid timing to any input clock pin 0 plb (011) or dlb (100) or alb (001) 0 x 0 rclko, tlclk, tclko 0 plb (011) or dlb (100) 1 x 0 rclko, tlclk, tclko 0 dlb&llb (110) x x 0 rclko, tclko 0 llb (010) x x 0 rclko, tlclk 0 not llb, dlb or plb (00x) x x 0 rclko 0 dlb (100) or llb & dlb (110) x 0 1 no valid timing to any input clock pin 0 dlb (100) or llb & dlb (110) x 1 1 tclki 0 not dlb (100) and not llb & dlb (110) 0 x 1 rlclk 0 not dlb (100) and not llb & dlb (110) 1 x 1 no valid timing to any input clock pin 9.2.4 clock structures on signal io pins the signals on the input pins (tsofi, tser) can be used with any of the clock pins for setup/hold timing on clock input and output pins. there will be a flop at each input whose clock is connected to the signal from the input or output clock source pins with as little delay as possible from the signal on the clock io pins. this means using the input clock signal before the delays of the internal clock tree to clock the input signals, and using the output clock signals used to drive the output clock pins to clock the input signals. the signals on the output pins (tpos/tdat, tneg, tsofo/tden, rser, rsofo/rden) can be with any of the clock sources for delay timing. there will be a flop at each output whose clock is connected to the signal from the input or output clock source pins with as little delay as possible from the signal on the clock io pins. this means using the input clock signal before the delays of the internal clock tree to clock the input signals, and using the output clock signals used to drive the output clock pins to clock the input signals.
ds3170 ds3/e3 single-chip transceiver 63 of 233 figure 9-4. example io pin clock muxing q q set clr d internal signal tclki pin invert rlclk pin invert rx liu clk ds3 clk e3 clk sts-1 clk clad clocks tclko pin invert clock tree tden pin invert q q set clr d delay tfts 0 1 tser pin invert q q set clr d q q set clr d internal signal delay 0 1 tfts q q set clr d internal signal tlclk pin invert clock tree tpos pin invert q q set clr d delay tlts 0 1 q q set clr d internal signal rclko pin invert clock tree rser pin invert q q set clr d delay rfts 0 1 9.2.5 gapped clocks the transmit and receive output clocks can be gapped in certain configurations. see table 9-22 and table 9-24 for the configuration settings. the gapped clocks are active during ds3 or e3 framed payload bits overhead bits depending on which mode the device is configured for. in the internal ds3 or e3 frame modes, the transmit gapped clock is created by the logical or of the tclko and tden signals creating a positive or negative clock edge for each payload bit, the receive gapped clock is created by the logical or of the rclko and rden signals. when the output clock is disabled, the gapped output signal is high during clock periods if the pin is not inverted, otherwise it will be low. the gapped clocks are very useful when the data being clocked does not need to be aligned with any frame structure. the data is simply clocked one bit at a time as a continuous data stream. 9.3 reset and power-down the device can be reset at a global level via the gl.cr1 . rst bit or the rst pin and at the port level via the port.cr1 . rst bit and the port can be explicitly powered down via the port.cr1 . pd bit. the jtag logic is reset using the power on reset signal from one of the lius as well as from the jtrst pin. the external rst pin and the global reset bit in the global configuration register ( gl.cr1 .rst) are combined to create an internal global reset signal. the global reset signal resets all the status and control registers on the chip, except the gl.cr1 . rst bit, to their default values and resets all the other flops in the global logic and port to their
ds3170 ds3/e3 single-chip transceiver 64 of 233 reset values. the processor bus output signals are also forced to be hiz when the rst pin is active (low). the global reset bit ( gl.cr1 . rst) stays set after a one is written to it, but is reset to zero when the external rst pin is active or when a zero is written to it. at the port level, the global reset signal combines with the port reset bit in the port control register ( port.cr1 . rst) to create a port reset signal. the port reset signal resets all the status and control registers on the port to their default values and resets all the other flops, except port.cr1 . rst, to their reset values. the port reset bit ( port.cr1 . rst) stays set after a one is written to it, but is reset to zero when the global reset signal is active or when a zero is written to it. the data path reset function is a little different from the ?general? reset function. the data path reset signal does not reset the control register bits, but it does reset all of the status registers, counters and flops, the ?general? reset signal resets everything including the control register bits, excluding the reset bit. all clocks are functional, being controlled by configuration bits, while data path reset is active. the liu and clad circuits will be operating normally during data path reset which allows the internal phase locked loops to settle as quickly as possible. the liu will be sending all zeroes (los) since data path reset will be forcing the transmit tpos and tneg to logic zero. (note: the bert data path does not get reset when port.cr1 .rstdp is active.) the global data path reset bit ( gl.cr1 . rstdp) gets set to one when the global reset signal is active. the port data path reset bit ( port.cr1 . rstdp) and the port power-down bit ( port.cr1 . pd) bit gets set to one when the port reset signal is active. these control bits will be cleared when a zero is written to them when the port reset signal is not active. the global data path reset signal is active when the global data path reset bit is set. the port data path reset signal is active when either the global data path reset bit or the port data path reset bit is set. the port power-down signal is active when the port power-down bit is set. figure 9-5. reset sources q q set clr d q q set clr d q q set clr d q q set clr d rst pin global reset port reset global data path reset port data path reset gl.cr1 . rst gl.cr1 . rstdp port.cr1 . rst port.cr1 . rstdp note: assumes active high signals q q set clr d port power down port.cr1 . pd
ds3170 ds3/e3 single-chip transceiver 65 of 233 table 9-10. reset and power-down sources pin register bits internal signals rst g:rst g:rstdp p:rst p:rstdp p:pd global reset global dp reset port reset port dp reset port power dn 0 f0 f1 f0 f1 f1 1 1 1 1 1 1 1 f1 f0 f1 f1 1 1 1 1 1 1 0 1 1 f1 f1 0 1 1 1 1 1 0 1 0 x 1 0 1 0 1 1 1 0 1 0 x 0 0 1 0 1 0 1 0 0 1 f1 f1 0 0 1 1 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1 0 1 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 0 0 0 register bit states?f0: forced to 0; f1: forced to 1; 0: set to 0; 1: set to 1; x: don?t care forced: internally controlled; set: user controlled the reset signals in the device are asynchronous so they no not require a clock to put the logic into the reset state. clock signals may be needed to make the logic come out of the reset state. the power-down function disabl es the appropriate clocks to cause the logic to generate a minimum of power. it also puts the liu circuits into the power-down mode. the 8kref and onesec circuits can be powered down by disabling the 8kref source. the clad can also be powered down by disabling it. after a global reset, all of the control and status registers are set to their default values and all the other flops are reset to their reset values. the global register gl.cr1 . rstdp, and the port register port.cr1 . rstdp and port.cr1 . pd bits, are set after the global reset. a valid initialization sequence would be to clear the port.cr1 . pd bit, write to all of the configuration registers to set them in the desired modes, then clear the gl.cr1 . rstdp and port.cr1 . rstdp bits. this would cause the logic in the port to start up in a repeatable sequence. the device can also be initialized by clearing the gl.cr1 . rstdp, port.cr1 . rstdp and port.cr1 . pd them writing to all of the configuration registers to set them in the desired modes, and clearing all of the latched status bits. the second initialization scheme could cause the device to temporarily go into modes of operation that were not requested, but will quickly go into the requested modes of operation. some of the io pins are put in a known state at reset. the transmit liu outputs txp and txn are quiet and will not drive positive or negative pulses. the global io pins (gpio[7:0]) are set as inputs at global reset. the port output pins (tlclk, tpos/tdat, tneg, tohclk, tohs of, tsofo/tden, tclko/tgclk, roh, rohclk, rohsof, rser, rsofo/rden, rclko/rgclk) are driven low at global or port reset and should stay low until after the port power-down port.cr1 . pd and port data path reset port.cr1 . rstdp bits are cleared. the processor port three-state output pins (d[15:0], rdy , int ) are forced into the high impedance state when the rst pin is active, but not when the gl.cr1 . rst bit is active. after reset, the device will be in the default configuration:: the latched status bits are enabled to be cleared on write. the clad is disabled. the global 8kref and one-second timers are disabled. the line interface is in b3zs mode and the liu is disabled and the transmit line pins ar e also disabled. the frame mode is ds3 c-bit with automatic downstream ais on los or oof is enabled and automatic rdi on lof, los, sef or ais is enabled and automatic febe is enabled. transmit clock comes from the refclk pin. the pin inversion on all pins is disabled. individual blocks are reset and powered down when not used determined by the settings in the line mode bits port.cr2 . lm[2:0] and framer mode bits port.cr2 . fm[2:0].
ds3170 ds3/e3 single-chip transceiver 66 of 233 9.4 global resources 9.4.1 clock rate adapter (clad) the clock rate adapter is composed of a pll block to create the internal clock which can be used for the transmit clock and/or liu reference clock from a clock input on the reference input (refclk) pin. the device needs one of two (ds3 or e3) internal clock rates. the input reference clock frequency can be either 44.736, 34.368. 77.78, 51.84 or 19.44 mhz. the receive liu is supplied a reference clock from the clad. the receive liu selects the clock frequency based upon the mode the user selects via the fm bits. the clad output is also available as a transmit clock source if selected via the port.cr2 .cladc register bit. the user must supply at least one of the five rates (44.736, 34.368. 77.78, 51.84 or 19.4 mhz) to the refclk pin. the clad[2:0] bits informs the pll of the frequency applied to the pins. selection of the clock applied to the liu and optionally the transmitter is controlled by the fm bits (located in port.cr2 ). the clad allows maximum flexibility to the user. the user may supply any of the five clock rates and use the clad to convert the rate to the particular clock rate needed for his application. the clad pll is enabled when the clad input reference clock is different from the clock required for the framing mode. the clad pll is disabled and the clad output clock is connected directly to the clad input clock (refclk) when the framing mode requires the same clock as the clad input reference clock. table 9-11. clad clock source settings clad[2:0] refclk (input) 000 44.736 mhz 001 34.368 mhz 010 51.84 mhz 011 19.44 mhz 100 77.76 mhz 101 undefined 11x undefined 9.4.2 8 khz reference generation the global 8kref signal is used to generate the one second reference signal by dividing it by 8000. this signal can be derived from almost any clock source on the chip as well as the general purpose io pin gpio4. the port 8kref signal can be sourced from the transmit or receive clocks. the minimum input frequency stability of the 8kref input pin is +/- 500 ppm. the global 8kref signal can come from an external 8000 hz reference connected to the gpio4 general purpose io pin by setting the gl.cr2 . g8kis bit. the global 8kref signal can be output on the gpio2 general purpose io pin when the gl.cr2 .g8kos bit is set. the global 8kref signal can be derived from the clad pll or pins or come from any of the port 8kref signals by clearing gl.cr2 . g8kis bit and selecting the source using the gl.cr2. g8krs[2:0] bits. the port 8kref signal can be derived from the transmit clock input pin or from the receive liu or input clock pin. the port.cr3 . p8krs[1:0] bits are used to select which source. the 8kref 8.000 khz signal is a simple divisor of 44736 khz (ds3 divided by 5592) or 33368 khz (e3 divided by 4296). the correct divisor for the port 8kref source is selected by the mode the port is configured for. the clad clock chosen for the clock source selects the correct divisor for the global 8kref. the 8kref signal is only as accurate as the clock source chosen to generate it. table 9-12 lists the selectable sources for global 8 khz reference.
ds3170 ds3/e3 single-chip transceiver 67 of 233 table 9-12. global 8 khz reference source table gl.cr2. g8kis gl.cr2. g8krs[1:0] source 0 00 none, the 8khz divider is disabled. 0 01 derived from clad output clock 0 10 8kref source selected by p8krs[1:0] 0 11 undefined 1 xx gpio4 table 9-13 lists the selectable sources for port 8 khz reference sources. table 9-13. port 8 khz reference source table port.cr3 . p8krs[1:0] source 0x undefined 10 internal receive framer clock 11 internal transmit framer clock figure 9-6 shows the 8 khz reference logic tree. figure 9-6. 8kref logic clock divider clock divider tx clock rx clock frame mode p8krs gpio4 ds3 clk e3 clk from clad frame mode g8krs g8kis global 8kref port 8kref 9.4.3 one second reference generation the one second reference signal is used as an option to update the performance registers on a precise one second interval. the generated internal signal should be about 50% duty cycle and it is derived from the global 8 khz reference signal by dividing it by 8000. the low to high edge on this signal will set the gl.srl . onesl latched one second detect bit which can generate an interrupt when the gl.srie . onesie interrupt enable bit is set. the low to high edge can also be used to generate performance monitor updates when gl.cr1 . gpm[1:0]=1x.
ds3170 ds3/e3 single-chip transceiver 68 of 233 9.4.4 general-purpose io pins there are eight general-purpose io pins that can be used for general io, global signals and framer alarm signals. each pin is independently configurable to be a general-purpose input, general-purpose output, global signal or framer alarm. two of the gpio pins can be programmed to output one or two framer alarm statuses. one of the two pins assigned to framer alarms can be programmed as global input or output signals. when the port is powered down or reset and gl.giocr . gpiox[1:0] = 01, the gpio pin will be an output driving low. the 8krefi, tmei, and pmu signals that can be sourced by the gpio pin will be driven low into the core logic when the gpio pin is not selected for the source of the signal. table 9-14 lists the purpose and control thereof of the general-purpose io pins. table 9-14. gpio global signals pin global signal control bit gpio2 8krefo output gl.cr2 .g8kos gpio4 8krefi input gl.cr2 .g8kis gpio6 tmei input gl.cr1 .meims gpio8 pmu input gl.cr1 .gpm[1:0] table 9-15 describes the selection of mode for the gpio pins. table 9-15. gpio pin global mode select bits gl.giocr .gpiosx gpio pin mode 00 input 01 framer alarm status selected by port gpio 10 output logic 0 11 output logic 1 x = a or b, valid when a gpio pin is not selected for a global signal table 9-16 lists the various port alarm monitors that can be output on the gpio pins. the gpio(a/b)[3:0] bits are located in the port.cr4 register.
ds3170 ds3/e3 single-chip transceiver 69 of 233 table 9-16. gpio port alarm monitor select port.cr4 gpio(a/b)[3:0] line los ds3/e3 oof ds3/e3 lof ds3/e3 ais ds3/e3 rai ds3 idle 0000 x 0001 x 0010 x 0011 x 0100 x 0101 x 0110 0111 1000 1001 1010 1011 x x x 1100 1101 x x x 1110 x x 1111 x x x x x x 9.4.5 performance monitor counter update details the performance monitor counters are designed to count at least one second of events before saturating to the maximum count. there is a status bit associated with some of the performance monitor counters that is set when the its counter is greater than zero, and a latched status bit that gets set when the counter changes from zero to one. there is also a latched status bit that gets set on every event that causes the error counter to increment. there is a read register for each performance monitor counter. the count value of the counter gets loaded into this register and the counter is cleared when the update-clear operation is performed. if there is an event to be counted at the exact moment (clock cycle) that the counter is to be cleared then the counter will be set to a value of one so that that event will be counted. the performance monitor update signal affects the counter registers of the following blocks: the bert, the ds3/e3 framer, the line encoder/decoder. the update-clear operation is controlled by the performance monitor update signal (pmu). the update-clear operation will update the error counter registers with the value of the error counter and also reset each counter. the pmu signal can be created in hardware or software. the hardware sources can come from the one second counter or one of the general-purpose io pins, which can be programmed to source this signal. the software sources can come from one of the port control register bits or one of the global control register bits. when using the software update method, the pmu control bit should be set to initiate the process and when the pms status bit gets set, the pmu control bit should be cleared making it ready for the next update. when using the hardware update method, the pms bit will be set shortly after the hardware signal goes high, and cleared shortly after the hardware signal goes low. the latched pms signal can be used to generate an interrupt for reading the count registers. if the port is not configured for global pmu signals, the pms signal from that port should be blocked from affecting the global pms status.
ds3170 ds3/e3 single-chip transceiver 70 of 233 figure 9-7. performance monitor update logic gl.sr .gpms port.sr .pms port.cr1 .pmu port.cr1 .pmum 1 0 00 01 1x gl.cr1 .gpm gl.cr1 .gpmu gpio8(gpmu) pin one sec perf counter other port counters pmu pms gtz 9.4.6 transmit manual error insertion transmit errors can be inserted in some of the functional blocks. these errors can be inserted using register bits in the functional blocks, using the global gl.cr1 . tmei bit, using the port port.cr1 . tmei bit, or by using the gpio6 pin configured for tmei mode. there is a transmit error insertion register in the functional blocks that allow error insertion. the meims bit controls whether the error is inserted using the bits in the error insertion register or using error insertion signals external to that block. when bit meims=0, errors are inserted using other bits in the transmit error insertion register. when bit meims=1, errors are inserted using a signal generated in the port or global control registers or using the external gpio6 pin configured for tmei operation.
ds3170 ds3/e3 single-chip transceiver 71 of 233 figure 9-8. transmit error insert logic bert error insert bert.teicr .meims bert.teicr error insertion bit 0 1 0 1 port.cr .meims port.cr .tmei 0 1 gl.cr1 .meims gl.cr1 .tmei gpio6 pin (tmei) 0 1 t3.teir .meims t3.teir error insertion bit 0 1 t3 error insert 9.5 port resources 9.5.1 loopbacks there are several loop back paths available. the following table lists the loopback modes available for analog loopback (alb), line loopback (llb), payload loopback (plb) and diagnostic loopback (dlb). the lbm bits are located in port.cr4. table 9-17. loopback mode selections lbm[2:0] alb llb plb dlb 000 0 0 0 0 001 1 0 0 0 010 0 1 0 0 011 0 0 1 0 10x 0 0 0 1 110 0 1 0 1 111 0 0 0 1
ds3170 ds3/e3 single-chip transceiver 72 of 233 figure 9-9 highlights where each loopback mode is located and gives an overall view of the various loopback paths available. figure 9-9. loopback modes ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 9.5.1.1 analog loopback (alb) analog loopback is enabled by setting port.cr4 . lbm[2:0] = 001. analog loopback mode will not be enabled when the port is configured for loop timed mode (set via the port.cr3 . loopt bit). the analog loopback is a loopback as close to the pins as possible. when both the tx and rx liu is enabled, it loops back txp and txn to rxp and rxn, respectively. if the transmit signals on txp and txn are not terminated properly, this loopback path may have data errors or loss of signal. when the liu is not enabled, it loops back tlclk,tpos / tdat,tneg to rlclk, rpos / rdat , rneg. figure 9-10. alb mux rxp rxn txp txn rx liu tx liu
ds3170 ds3/e3 single-chip transceiver 73 of 233 9.5.1.2 line loopback (llb) line loopback is enabled by setting port.cr4 . lbm[2:0] = x10. dlb and llb are enabled at the same time when lbm[2:0] = 110, and only llb is enabled when lbm[2:0] = 010. the clock from the receive liu or the rlclk pin will be output to the transmit liu or tclko pin. the pos and neg data from the receive liu or the rpos and rneg pin will be sampled with the receive clock to time it to the liu or pin interface. when llb is enabled, unframed all ones ais can optionally be automatically enabled on the receive data path. this ais signal will be output on the rser pin in framed modes. when dlb and llb is enabled, the ais signal will not be transmitted. see figure 9-9 . 9.5.1.3 payload loopback (plb) payload loopback is enabled by setting port.cr4 . lbm[2:0] = 011. the payload loopback copies the payload data from the receive framer to the transmit framer which then re-frames the payload before transmission. payload loopback is operational in all framing modes. when plb is enabled, unframed all ones ais transmission can optionally be automatically enabled on the receive data path. this ais signal will be output on the rser. in all plb modes, the tsofi input pin is ignored. the external transmit output pins tden and tsofo/tden can optionally be disabled by forcing a zero when plb is enabled. see figure 9-9 . 9.5.1.4 diagnostic loopback (dlb) diagnostic loopback is enabled by setting port.cr4 . lbm[2:0] = 1xx. dlb and llb are enabled at the same time when lbm[2:0] = 110, only dlb is enabled when lbm[2:0] = 10x or 111. the diagnostic loopback sends the transmit data, before line encoding, back to the receive side. transmit ais can still be enabled using port.cr1 .lais[2:0] even when dlb is enabled. see figure 9-9 . 9.5.2 loss of signal propagation the loss of signal (los) is detected in the line decoder logic. in unipolar (uni) line interface modes los is never detected. the los signal from the line decoder is sent to the ds3/e3 framer and the top level payload ais logic except when dlb is activated. when dlb is activated the los signal to the framer and ais logic is never active. the los status in the line decoder status register is valid in all frame and loop back modes, though it is always off in the line interface is in the uni mode. 9.5.3 ais logic there is ais logic in both the framers and at the top level logic of the port. the framer ais is enabled by setting the tais bit in the appropriate framer transmit control register (t3, e3-g.751, e3-g.832, or clear channel). the top level ais is enabled by setting the port.cr1 .lais[2:0] bits (see table 9-18 ). the ais signal is an unframed all ones pattern or a ds3 framed 101010? pattern depending on the fm[2:0] mode bits. the ds3 framed alarm indication signal (ais) is a ds3 signal with valid f-bits, m-bits, and p-bits (p 1 and p 2 ). the x-bits (x 1 and x 2 ) are set to one, all c-bits (c xy ) are set to zero, and the payload bits are set to a 1010 pattern starting with a one immediately after each overhead bit. the ds3 framed ais pattern is only available in ds3 modes. the unframed all ones pattern is available in all framing modes including the ds3 modes. the transmit line interface can send both unframed all ones ais and ds3 framed ais patterns from either the ais generator in the framer or the ais generator at the top level. the ais signal generated in the framer can be initiated and terminated without introducing any errors in the signal. when the unframed ais signal is initiated or terminated, there will be no bpv or cv errors introduced, but there will be framing errors if a framed mode is enabled. when the ds3 framed ais signal is initiated or terminated, in addition to no bpv or cv errors, there should be no framing or p-bit (parity) or cp-bit errors introduced. the ais signal generated at the top level will not generate bpv errors but may generate p-bit and cp-bit errors when the signal is initiated and terminated. the framed ds3 ais signal will not cause the far end receiver to re- sync when the signal is initiated, but it may cause a re-sync when terminated if the ds3 frame position in the framer is changed while the ds3 ais signal is being generated. a sequence of events can be executed which will enable the initiation and termination of ds3 ais or unframed all ones at the top level without any errors introduced.
ds3170 ds3/e3 single-chip transceiver 74 of 233 the sequence will only work when the automatic ais generation is not enabled. cv and p-bit errors can occur when ais is automatically generated and can not be avoided. this sequence to generate an error free ds# ais at the top level is to have the ds3 ais or unframed all ones signal initiate in the ds3 framer, and a few frames sent before initiating or terminating the ds3 ais or unframed all ones at the top level. after the top level ais signal is activated, the ais signal in the framer can be terminated, dlb activated and diagnostic patterns generated. the ds3 ais signal generated at the top level will not change frame alignment after starting even if the ds3 frame position in the framer is changed. the transmit line ais generator at the top level can generate ais signals even when the framer is looped back using dlb, but not when the line is looped back using llb. the ais signal generated in the framer will be looped back to the receive side when dlb is activated. the receive framer can detect both unframed all ones ais and ds3 framed ais patterns. when in ds3 framing modes, both framed ds3 ais and unframed all ones can be detected. in e3 framing modes e3 ais, which is unframed all ones, is detected. the receive payload interface going to the rser pin or the bert logic can have an unframed all ones ais signal replacing the receive signal, this is called payload ais. the all ones ais signal is generated from either the ds3/e3 framer or the downstream top level unframed all ones ais generator. the unframed all ones ais signal generated in the framer will be looped back to the transmit side when plb is activated. the unframed all ones ais signal generated at the top level will be sent to the rser pin and other receive logic, but not to the transmit side while plb is activated. the top level ais generator is used when a downstream ais signal is desired while payload loop back is activated and is enabled by default after rest and must be cleared during configuration. note that the downstream ais circuit in the framer, when a ds3 mode is selected, enforces the oof to be active for 2.5 msec before activating when automatic ais in the framer is enabled. the top level downstream ais will be generated with no delay when oof is detected when automatic ais at the top level is enabled. there is no detection of any ais signal on the transmit payload signal from the tser pin or anywhere on the transmit data path. the transmit ais generator at the top level can also be activated with a software bit or automatically when dlb is activated. the receive ais generator in the framer can be activated with a software bit, and automatically when ais, los or oof are detected. the receive payload ais generator at the top level can be activated with a software bit or automatically when los, ds3/e3 oof, llb, or plb is activated. figure 9-11 shows the ais signal flow through the device. figure 9-11. ais signal flow ua1 ais 0 1 0 1 ua1 ais ds3/ ua1 ais 0 1 0 1 0 1 ds3/ ua1 ais 0 1 optional b3zs/ hdb3 decoder optional b3zs/ hdb3 encoder plb 0 1 dlb llb ds3/ua1 ais detector framer tais dais tais dais transmit line receive line transmit payload receive payload tsofo line/tributary side system/ trunk side
ds3170 ds3/e3 single-chip transceiver 75 of 233 table 9-18 lists the lais decodes for various line ais enable modes. table 9-18. line ais enable modes lais[1:0] port.cr1 frame mode description ais code 00 ds3 automatic ais when dlb is enabled ( port.cr4 .lbm = 1xx) ds3ais 00 e3 automatic ais when dlb is enabled ua1 01 any send ua1 ua1 10 ds3 send ais ds3ais 10 e3 send ais ua1 11 any disable none table 9-19 lists the pais decodes for various payload ais enable modes. table 9-19. payload (downs tream) ais enable modes pais[2:0] port.cr1 when ais is sent ais code 000 always ua1 001 when llb (no dlb) active ua1 010 when plb active ua1 011 when llb(no dlb) or plb active ua1 100 when los (no dlb) active ua1 101 when oof active ua1 110 when oof, los. llb (no dlb), or plb active ua1 111 never none 9.5.4 loop timing mode loop timing mode is enabled by setting the port.cr3 .loopt bit. this mode replaces the clock from the tclki pin with the internal receive clock from either the rlclk pin if the rx liu is disabled, or the recovered clock from the rx liu if it is enabled. the loop timing mode can be activated in any framing or line interface mode. 9.5.5 hdlc overhead controller the data signal to the receive hdlc controller will be forced to a one while still being clocked when the framer (ds3, e3), to which the hdlc is connected, detects lof or ais. forcing the data signal to all ones will cause an hdlc packet abort if the data started to look like a packet instead of allowing a bad, and possibly very long, hdlc packet. 9.5.6 trail trace there is a single trail trace controller for use in line maintenance protocols. the e3-g.832 framer has access to the trail trace controller. 9.5.7 bert there is a bit error rate test (bert) circuit for use in generating and detecting test signals in the payload bits. the bert can generate and detect prbs patterns up to 2^32-1 bits as well as repeating patterns up to 32 bits
ds3170 ds3/e3 single-chip transceiver 76 of 233 long. the generated bert signal replaces the data on the tser pin in framed modes when the bert is enabled by setting the port.cr1.bena. when the bert is enabled the tden and rden pins will still be active but the data on the tser pin will be discarded. 9.5.8 system port pins the system port pins have multiple functions based on the framing mode the device is in as well as other pin mode select bits. 9.5.8.1 transmit system port pins the transmit system pins are tsofi, tser, tsofo / tden, and tclko / tgclk. they have different functions based on the framing mode and other pin mode bits. unused input pin functions should drive a logic zero into the device circuits expecting a signal from that pin. the control bits that configure the pins? modes are port.cr2 . fm[2:0], port.cr3 . tpfpe, port.cr3 . tsofos and port.cr3 . tclks. table 9-20 to table 9-22 describe the function selected by the fm bits and other pin mode bits for the multiplexed pins. table 9-20. tsofi input pin functions fm[2:0] port.cr2 pin function 0xx (frm) tsofi 1xx (ufrm) not used table 9-21. tsofo/tden/output pin functions fm[2:0] port.cr2 tsofos port.cr3 pin function 0xx (frm) 0 tden 0xx (frm) 1 tsofo 1xx (ufrm) x high table 9-22 tclko/tgclk output pin functions fm[2:0] port.cr2 tclks port.cr3 pin function gap source 0xx (frm) 0 tgclk tden 0xx (frm) 1 tclko none 1xx (ufrm) x tclko none 9.5.8.2 receive system port pins the receive system pins are rser, rsofo / rden and rclko / rgclk. they have different functions based on the framing mode and other pin mode bits. unused input pin functions should drive a logic zero into the device circuits expecting a signal from that pin. the control bits that configure these pins are port.cr2 . fm[2:0], port.cr3 . rpfpe, port.cr3 . rsofos and port.cr3 . rclks. table 9-23 to table 9-24 describe the function selected by the fm bits and other pin mode bits for the multiplexed pins.
ds3170 ds3/e3 single-chip transceiver 77 of 233 table 9-23. rsofo/rden output pin functions fm[2:0] port.cr2 rsofos port.cr3 pin function 0xx (frm) 0 rden 0xx (frm) 1 rsofo 1xx (ufrm) x high table 9-24. rclko/rgclk output pin functions fm[2:0] port.cr2 rclks port.cr3 pin function gap source 0xx (frm) 0 rgclk rden 0xx (frm) 1 rclko none 1xx (ufrm) x rclko none 9.5.9 framing modes the framing modes are selected independently of the line interface modes using the port.cr2 . fm[2:0] control bits. different blocks are used in different framing modes. the bit error test (bert) function can be enabled in any mode. the liu, ja and line encoder/decoder blocks are selected by the line mode (lm[2:0]) code. table 9-25. framing mode select bits fm[2:0] fm[2:0] description line code figure 0 00 ds3 c-bit framed b3zs/ami/uni figure 6-1 0 01 ds3 m23 framed b3zs/ami/uni figure 6-1 0 10 e3 g.751 famed hdb3/ami/uni figure 6-1 0 11 e3 g.832 framed hdb3/ami/uni figure 6-1 1 00 ds3 unframed b3zs/ami/uni figure 6-2 1 01 undefined --- 1 10 e3 unframed hdb3/ami/uni figure 6-2 1 11 undefined --- 9.5.10 line interface modes the line interface modes can be selected semi-independently of the framing modes using the port.cr2 . lm[2:0] control bits. the major blocks controlled are the transmit liu (tx liu), receive liu (rx liu), jitter attenuator (ja) and the line encoder/decoder. the line encoder/decoder is used for b3zs, hdb3 and ami line interface encoding modes. the line encoder-decoder block is not used for line encoding or decoding in the uni mode but the bpv counter in it can be used to count external pulses on the rneg / rclv pin. the jitter attenuator (ja) can be off (off) or put in either the transmit (tx) or receive (rx) path with the tx liu or rx liu. both tx liu and rx liu can be enabled (on) or disabled (off). the ?analog loop back? (alb) is available when the liu is enabled or disabled. it is an actual loop back of the analog positive and negative pulses from the tx liu to the rx liu when the liu is enabled. if the liu is disabled, it is a digital loop back of the tlclk, tpos, tneg signals to the rlclk, rpos and rneg signals. when the line is configured for b3zs/hdb3/ami line codes, the line codes are determined by the framing mode and the ami line mode selection is controlled by the tzcds and rzcds bits in the line encoder/decoder blocks. the ds3 modes select the b3zs line coding, the e3 modes select the hdb3 line codes. refer to table 9-26 for configuration.
ds3170 ds3/e3 single-chip transceiver 78 of 233 table 9-26. line mode select bits lm[2:0] line.tcr . tzsd & line.rcr .rzsd lm[2:0] (port.cr2 ) line code liu ja 0 000 b3zs/hdb3 off off 0 001 b3zs/hdb3 on off 0 010 b3zs/hdb3 on tx 0 011 b3zs/hdb3 on rx 1 000 ami off off 1 001 ami on off 1 010 ami on tx 1 011 ami on rx x 1xx uni off off
ds3170 ds3/e3 single-chip transceiver 79 of 233 9.6 ds3/e3 framer / formatter 9.6.1 general description the receive ds3/e3 framer receives a unipolar ds3/e3 signal, determines frame alignment and extracts the ds3/e3 overhead in the receive direction. the transmit ds3/e3 formatter receives a ds3/e3 payload, generates framing, inserts ds3/e3 overhead, and outputs a unipolar ds3/e3 signal in the transmit direction. the receive ds3/e3 framer receives a ds3/e3 signal from the receive liu or rdat (or rpos and rneg), determines the frame alignment, extracts the ds3/e3 overhead, and outputs the payload with frame and overhead the transmit ds3/e3 formatter receives a ds3/e3 payload on tser, generates a ds3/e3 frame, optionally inserts ds3/e3 overhead, and transmits the ds3/e3 signal. refer to figure 9-12 for the location of the ds3/e3 framer/formatter blocks in the ds3170. figure 9-12. framer detailed block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 9.6.2 features 9.6.2.1 transmit formatter  programmable ds3 or e3 formatter ? accepts a ds3 (m23 or c-bit) or e3 (g.751 or g.832) signal and performs ds3/e3 overhead generation.  arbitrary framing format support ? generates a signal with an arbitrary framing format. the line overhead/stuff periods are added into the data stream using an overhead mask signal.  generates alarms and errors ? ds3 alarm conditions (ais, rdi, and idle) and errors (framing, parity, and febe), or e3 alarm conditions (ais and rdi/rai) and errors (framing, parity, and rei) can be inserted into the outgoing data stream.  externally controlled serial ds3/e3 overhead insertion port ? can insert all ds3 or e3 overhead via a serial interface. ds3/e3 overhead insertion is fully controlled via the serial overhead interface.  hdlc overhead insertion ? an hdlc channel can be inserted into the ds3 or e3 data stream.  feac insertion ? a feac channel can be inserted into the ds3 or e3 data stream.  trail trace insertion ? inputs and inserts the g.832 e3 tr byte. 9.6.2.2 receive framer  programmable ds3 or e3 framer ? accepts a ds3 (m23 or c-bit) or e3 (g.751 or g.832) signal and performs ds3/e3 overhead termination.
ds3170 ds3/e3 single-chip transceiver 80 of 233  arbitrary framing format support ? accepts a signal with an arbitrary framing format. the line overhead/stuff periods are removed from the data stream using an overhead mask signal.  detects alarms and errors ? detects ds3 alarm conditions (sef, oomf, oof, lof, cofa, ais, aic, rdi, and idle) and errors (framing, parity, and febe), or e3 alarm conditions (oof, lof, cofa, ais, and rdi/rai) and errors (framing, parity, and rei).  serial ds3/e3 overhead extraction port ? extracts all ds3 or e3 overhead and outputs it on a serial interface.  hdlc overhead extraction ? an hdlc channel can be extracted from the ds3 or e3 data stream.  feac extraction ? a feac channel can be extracted from the ds3 or e3 data stream.  trail trace extraction ? extracts and outputs the g.832 e3 tr byte. 9.6.3 transmit formatter the transmit formatter receives a ds3 or e3 data stream and performs framing generation, error insertion, overhead insertion, and ais/idle generation for c-bit ds3, m23 ds3, g.751 e3, or g.832 e3 framing protocols. the bits in a byte are transmitted msb first, lsb last. when they are input serially, they are input in the order they are to be transmitted. the bits in a byte in an outgoing signal are numbered in the order they are transmitted, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 9.6.4 receive framer the receive framer receives the incoming ds3,or e3, ine/tributary data stream, performs appropriate framing, and terminates and extracts the associated overhead bytes. the receive framer processes a c-bit format ds3, m23 format ds3, g.751 format e3, or g.832 format e3 data stream, performing framing, performance monitoring, overhead extraction, and generates downstream ais, if necessary. the bits in a byte are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. some bits, bit groups, or bytes (data) are integrated before being stored in a register. integration requires the data to have the same new data value for five consecutive occurrences before the new data value will be stored in the data register. unless stated otherwise, integrated data may have an associated unstable indication. integrated data is considered unstable if the received data value does not match the currently stored (integrated) data value or the previously received data value for eight consecutive occurrences. the unstable condition is terminated when the same value is received for five consecutive occurrences. 9.6.4.1.1 receive ds3 framing ds3 framing determines the ds3 frame boundary. in order to identify the ds3 frame boundary, first the subframe boundary must be found. the subframe boundary is found by identifying the subframe alignment bits f x1 , f x2 , f x3 , and f x4 , which have a value of one, zero, zero, and one respectively. see figure 9-13 . once the subframe boundary is found, the multiframe frame boundary can be found. the multiframe boundary is found by identifying the multiframe alignment bits m 1 , m 2 , and m 3 , which have a value of zero, one, and zero respectively. the ds3 framer is an off-line framer that only updates the data path frame counters when either an out of frame (oof) or an out of multiframe (oomf) condition is present. the use of an off-line framer reduces the average time required to reframe, and reduces data loss caused by burst error. the ds3 framer has a maximum average reframe time (mart) of approximately 1.0 ms.
ds3170 ds3/e3 single-chip transceiver 81 of 233 figure 9-13. ds3 frame format 680 bits 7 sub- frames x 1 x 2 p 1 p 2 m 1 m 2 m 3 f 11 f 21 f 31 f 41 f 51 f 61 f 71 f 12 f 22 f 32 f 42 f 52 f 62 f 72 f 13 f 23 f 33 f 43 f 53 f 63 f 73 f 14 f 24 f 34 f 44 f 54 f 64 f 74 c 11 c 21 c 31 c 41 c 51 c 61 c 71 c 12 c 22 c 32 c 42 c 52 c 62 c 72 c 13 c 23 c 33 c 43 c 53 c 63 c 73 the subframe framer continually searches four adjacent bit positions for a subframe boundary. a subframe alignment bit (f-bit) checker checks each bit position. all four bit positions must fail before any other bit positions are checked for a subframe boundary. there are 170 possible bit positions that must be checked, and four positions are checked simultaneously. therefore up to 43 checks may be needed to identify the subframe boundary. the subframe framer enables the multiframe frame once it has identified a subframe boundary. refer to figure 9-14 for the subframe framer state diagram. figure 9-14. ds3 subframe framer state diagram sync load verify all 4 bit positions failed 2 f-bits loaded 3 b i t p o s i t i o n s f a i l e d o r 1 6 f - b i t s v e r i f i e d a l l 4 b i t p o s i t i o n s f a i l e d the multiframe framer checks for a multiframe boundary. when the multiframe framer identifies a multiframe boundary, it updates the data path frame counters if either an oof or oomf condition is present. the multiframe framer waits until a subframe boundary has been identified. then, each bit position is checked for the multiframe
ds3170 ds3/e3 single-chip transceiver 82 of 233 boundary. the multiframe boundary is found by identifying the three multiframe alignment bits (m-bits). since there are seven multiframe bits and three bits are required to identify the multiframe boundary, up to 9 checks may be needed to find the multiframe boundary. once the multiframe boundary is identified, it is checked in each subsequent frame. the data path frame counters are updated if the three multiframe alignment bits are error free, and an oof or oomf condition exists. if the multiframe framer checks more than fifteen multiframe bit (x-bits, p- bits, and m-bits) positions without identifying the multiframe boundary, the multiframe framer times out, and forces the subframe framer back into the load state. refer to figure 9-15 for the multiframe framer state diagram. 9.6.4.1.2 receive ds3 performance monitoring performance monitoring che cks the ds3 fr ame for alarm conditions and errors. the alarm c onditions detected are oomf, oof, sef, lof, cofa, los, ais, idle, rua1, and rdi. the errors accumulated are framing, p-bit parity, c-bit parity (c-bit format only), and far-end block error (febe) (c-bit format only) errors. an out of multiframe (oomf) condition is declared when a multiframe alignment bit (m-bit) error has been detected in two or more of the last four consecutive ds3 frames, or when a manual resynchronization is requested. an oomf condition is terminated when no m-bit errors have been detected in the last four consecutive ds3 frames, or when the ds3 framer updates the data path frame counters. refer to figure 9-15 for the multiframe framer state diagram. figure 9-15. ds3 multiframe framer state diagram sync load verify timeout 2 multiframe loaded m - b i t s i d e n t i f i e d m - b i t e r r o r a n d t i m e o u t m - b i t e r r o r if multiframe alignment oof is disabled, an out of frame (oof) condition is declared when three or more out of the last sixteen consecutive subframe alignment bits (f-bits) have been errored, or a manual resynchronization is requested. if multiframe alignment oof is enabled, an oof condition is declared when three or more out of the last sixteen consecutive f-bits have been errored, when an oomf condition is declared, or when a manual resynchronization is requested. if multiframe alignment oof is disabled, an oof condition is terminated when none of the last sixteen consecutive f-bits has been errored, or when the ds3 framer updates the data path frame counters. if multiframe alignment oof is enabled, an oof condition is terminated when an oomf condition is not active and none of the last sixteen consecutive f-bits has been errored, or when the ds3 framer updates the data path frame counters. multiframe alignment oof is programmable (on or off). a severely errored frame (sef) condition is declared when three or more out of the last sixteen consecutive f-bits have been errored, or when a manual resynchronization is requested. an sef condition is terminated when an oof condition is absent.
ds3170 ds3/e3 single-chip transceiver 83 of 233 a loss of frame (lof) condition is declared by the lof integration counter when it has been active for a total of t ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is absent for t continuous ms. t is programmable (0, 1, 2, or 3). an lof condition is terminated when an oof condition is absent for t continuous ms. a change of frame alignment (cofa) is declared when the ds3 framer updates the data path frame counters with a frame alignment that is different from the current data path ds3 frame alignment. a loss of signal (los) condition is declared when the b3zs encoder is active, and it declares an los condition. an los condition is terminated when the b3zs encoder is inactive, or it terminates an los condition. an alarm indication signal (ais) is a ds3 sign al with valid f-bits and m-bits. the x-bits (x 1 and x 2 ) are set to one, the p-bits (p 1 and p 2 ) are set to zero, all c-bits (c xy ) are set to zero, and the payload bits are set to a 1010 pattern starting with a one immediately after each ds3 overhead bit. an ais signal is present when a ds3 frame is received with valid f-bits and m-bits, both x-bits set to one, both p-bits set to zero, all c-bits set to zero, and all but seven or fewer payload data bits matching the ds3 overhead aligned 1010 pattern. an ais signal is absent when a ds3 frame is received that does not meet the aforementioned criteria for an ais signal being present. the ais integration counter declares an ais condition when it has been active for a total of 10 to 17 ds3 frames. the ais integration counter is active (increments count) when an ais signal is present, it is inactive (holds count) when an ais signal is absent, and it is reset when an ais signal is absent for 10 to 17 consecutive ds3 frames. an ais condition is terminated when an ais signal is absent for 10 to 17 consecutive ds3 frames. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected and an oof condition is continuously present . a rua1 condition is terminated if in each of 4 consecutive 2047 bit windows, six or more zeros are detected or an oof condition is continuously absent. an idle signal (idle) is a ds3 signal with valid f-bits, m-bits, and p-bits (p 1 and p 2 ). the x-bits (x 1 and x 2 ) are set to one, c 31 , c 32 , and c 33 are set to zero, and the payload bits are set to a 1100 pattern starting with 11 immediately after each overhead bit. in c-bit mode, an idle signal is present when a ds3 frame is received with valid f-bits, m- bits, and p-bits, both x-bits set to one, c 31 , c 32 , and c 33 set to zero, and all but seven or fewer payload data bits matching the t3 overhead aligned 1100 pattern. in m23 mode, an idle signal is present when a t3 frame is received with valid f-bits, m-bits, and p-bits, both x-bits set to one, and all but seven or fewer payload data bits matching the overhead aligned 1100 pattern. an idle signal is absent when a ds3 frame is received that does not meet aforementioned criteria for an idle signal being present. the idle integration counter declares an idle condition when it has been active for a total of 10 to 17 ds3 frames. the idle integration counter is active (increments count) when an idle signal is present, it is inactive (holds count) when an idle signal is absent, and it is reset when an idle signal is absent for 10 to 17 consecutive ds3 frames. an idle condition is terminated when an idle signal is absent for 10 to 17 consecutive ds3 frames. a remote defect indication (rdi) condition (also called a far-end sef/ais defect condition) is declared when four consecutive ds3 frames are received with the x-bits (x 1 and x 2 ) set to zero. an rdi condition is terminated when four consecutive ds3 frames are received with the x-bits set to one. a ds3 framing format mismatch (ds3fm) condition is declared when the ds3 format programmed (m13, c-bit) does not match the incoming ds3 signal framing format. a ds3fm condition is terminated when the incoming ds3 signal framing format is the same format as programmed. framing errors are determined by comparing f-bits and m-bits to their expected values. the type of framing errors accumulated is programmable (oofs, f & m, f, or m). an oof error increments the count whenever an oof condition is first detected . an f & m error increments the count once for each f-bit or m-bit that does not match its expected value (up to 31 per ds3 frame). an f error increments the count once for each f-bit that does not match its expected value (up to 28 per ds3 frame). an m error increments the count once for each m-bit that does not match its expected value (up to 3 per ds3 frame). p-bit parity errors are determined by calculating the parity of the current ds3 frame (payload bits only), and comparing the calculated parity to the p-bits (p 1 and p 2 ) in the next ds3 frame. if the calculated parity does not match p 1 or p 2 , a single p-bit parity error is declared. c-bit parity errors (c-bit format only) are determined by calculating the parity of the current ds3 frame (payload bits only), and comparing the calculated parity to the c-bits in subframe three (c 31 , c 32 , and c 33 ) in the next ds3 frame. if the calculated parity does not match c 31 , c 32 , or c 33 , a single c-bit parity error is declared.
ds3170 ds3/e3 single-chip transceiver 84 of 233 febe errors (c-bit format only) are determined by the c-bits in subframe four (c 41 , c 42 , and c 43 ). a value of 111 indicates no error and any other value indicates an error. the receive alarm indication (rai) bit will be set high in the transmitter when one or more of the indicated alarm conditions is present, and low when all of the indicated alarm conditions are absent. setting the receive alarm indication on los, sef, lof, or ais is individually programmable (on or off). the application identification channel (aic) is stored in a register bit. it is determined from the c 11 bit. the aic is set to one (c-bit format) if the c 11 bit is set to one in thirty-one consecutive multiframes. the aic is set to zero (m23 format) if the c 11 bit is set to zero in four of the last thirty-one consecutive multiframes. note: the stored aic bit must not change when an los, oof, or ais condition is present. a febe is transmitted by default upon reception of a ds3 frame in which a c-bit parity error or a framing error is detected and counted. 9.6.5 c-bit ds3 framer/formatter 9.6.5.1 transmit c-bit ds3 frame processor the c-bit ds3 frame format is shown in figure 9-13 . figure 9-13. ds3 frame format 680 bits 7 sub- frames x 1 x 2 p 1 p 2 m 1 m 2 m 3 f 11 f 21 f 31 f 41 f 51 f 61 f 71 f 12 f 22 f 32 f 42 f 52 f 62 f 72 f 13 f 23 f 33 f 43 f 53 f 63 f 73 f 14 f 24 f 34 f 44 f 54 f 64 f 74 c 11 c 21 c 31 c 41 c 51 c 61 c 71 c 12 c 22 c 32 c 42 c 52 c 62 c 72 c 13 c 23 c 33 c 43 c 53 c 63 c 73 table 9-27 shows the function of each overhead bit in the ds3 frame
ds3170 ds3/e3 single-chip transceiver 85 of 233 table 9-27. c-bit ds3 frame overhead bit definitions bit definition x 1 , x 2 remote defect indication (rdi) p 1 , p 2 parity bits m 1 , m 2 , and m 3 multiframe alignment bits f xy subframe alignment bits c 11 application identification channel (aic) c 12 reserved c 13 far-end alarm and control (feac) signal c 21 , c 22 , and c 23 unused c 31 , c 32 , and c 33 c-bit parity bits c 41 , c 42 , and c 43 far-end block error (febe) bits c 51 , c 52 , and c 53 path maintenance data link (or hdlc) bits c 61 , c 62 , and c 63 unused c 71 , c 72 , and c 73 unused x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits. f xy are the subframe alignment bits. c 11 is the application identification channel (aic). c 12 is reserved for future network use, and has a value of one. c 13 is the far-end alarm and control (feac) signal. c 21 , c 22 , and c 23 are unused, and have a value of one. c 31 , c 32 , and c 33 are the c-bit parity bits used for path error monitoring. c 41 , c 42 , and c 43 are the far-end block error (febe) bits used for remote path error monitoring. c 51 , c 52 , and c 53 are the path maintenance data link (or hdlc) bits. c 61 , c 62 , and c 63 are unused, and have a value of one. c 71 , c 72 , and c 73 are unused, and have a value of one. the x-bit, p-bit, m-bit, c-bit, and f-bit posi tions are overhead bits, and the other bit positions in the t3 frame are payload bits regardless of how they are marked by tden. 9.6.5.2 transmit c-bit ds3 frame generation c-bit ds3 frame generation receives the incoming payload data stream, and overwrites all of the overhead bit locations. the multiframe alignment bits (m 1 , m 2 , and m 3 ) are overwritten with the values zero, one, and zero (010) respectively. the subframe alignment bits (f x1 , f x2 , f x3 , and f x4 ) are overwritten with the values one, zero, zero, and one (1001) respectively. the x-bits (x 1 and x 2 ) are both overwritten with the remote defect indicator (rdi). the rdi source is programmable (automatic, 1, or 0). if the rdi is generated automatically, the x-bits are set to zero when one or more of the indicated alarm conditions is present, and set to one when all of the indicated alarm conditions are absent. automatically setting rdi on los, sef, lof, or ais is individually programmable (on or off). the p-bits (p 1 and p 2 ) are both overwritten with the calculated payload parity from the previous ds3 frame. the payload parity is calculated by performing modulo 2 addition of all of the payload bits after all frame processing has been completed. p-bit generation is programmable (on or off) . the p-bits will be generated if either p-bit generation is enabled or frame generation is enabled. the bits c 11 , c 12 , c 21 , c 22 , c 23 , c 61 , c 62 , c 63 , c 71 , c 72 , and c 73 are all overwritten with a one. the bit c 13 is overwritten with the far-end alarm and control (feac) data input from the transmit feac controller.
ds3170 ds3/e3 single-chip transceiver 86 of 233 the bits c 31 , c 32 , and c 33 are all overwritten with the calculated payload parity from the previous ds3 frame. the bits c 41 , c 42 , and c 43 are all overwritten with the far-end block error (febe) bit. the febe bit can be generated automatically or inserted from a register bit. the febe bit source is programmable (automatic or register). if the febe bit is generated automatically, it is zero when at least one c-bit parity error has been detected during the previous frame. the bits c 51 , c 52 , and c 53 are overwritten with the path maintenance data link input from the hdlc controller. once all of the ds3 overhead bits have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming ds3 signal is passed on to error insertion. frame generation is programmable (on or off). note: p-bit generation may still be performed even if frame generation is disabled. 9.6.5.3 transmit c-bit ds3 error insertion error insertion inserts various types of errors into the different ds3 overhead bits. the types of errors that can be inserted are framing errors, p-bit parity errors, c-bit parity errors, and far-end block error (febe) errors. the framing error insertion mode is programmable (f-bit, m-bit, sef, or oomf). an f-bit error is a single subframe alignment bit (f xy ) error. an m-bit error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error. an sef error is an error in all the subframe alignment bits in a subframe (f x1 , f x2 , f x3 , and f x4 ). an oomf error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error in two consecutive ds3 frames. a p-bit parity error is generated by is inverting the value of the p-bits (p 1 and p 2 ) in a single ds3 frame. p-bit parity error(s) can be inserted one error at a time, or continuously. the p-bit parity error insertion mode (single or continuous) is programmable. a c-bit parity error is generated by is inverting the value of the c 31 , c 32 , and c 33 bits in a single ds3 frame. c-bit parity error(s) can be inserted one error at a time, or continuously. the c-bit parity error insertion mode (single or continuous) is programmable. a febe error is generated by forcing the c 41 , c 42 , and c 43 bits in a single multiframe to zero. febe error(s) can be inserted one error at a time, or continuously. the febe error insertion rate (single or continuous) is programmable. each error type (framing, p-bit parity, c-bit parity, or febe) has a separate enable. continuous error insertion mode inserts errors at every opportunity. single error insertion mode inserts an error at the next opportunity when requested. the framing multi-error modes (sef or oomf) insert the indicated number of error(s) at the next opportunities when requested; i.e., a single request will cause multiple errors to be inserted. the requests can be initiated by a register bit(tsei) or by the manual error insertion input (tmei). the error insertion initiation type (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 9.6.5.4 transmit c-bit ds3 overhead insertion overhead insertion can insert any (or all) of the ds3 overhead bits into the ds3 frame. the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the p-bits (p 1 and p 2 ) and c 31 , c 32 , and c 33 bits are received as an error mask (modulo 2 addition of the input bit and the internally generated bit). the ds3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion. 9.6.5.5 transmit c-bit ds3 ais/idle generation c-bit ds3 ais/idle generation overwrites the data stream with ais or an idle signal. if transmit idle is enabled, the data stream payload is forced to a 1100 pattern with two ones immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. and, p 1 , p 2, c 31 , c 32 , and c 33 are overwritten with the calculated payload parity from the previous output ds3 frame. if transmit ais is enabled, the data stream payload is forced to a 1010 pattern with a one immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. p 1 , p 2, c 31 , c 32 , and c 33 are overwritten with the calculated payload parity from the previous output ds3 frame. and, c x1 , c x2 , and c x3 (x  3) are overwritten with 000. ais will overwrite a transmit idle signal.
ds3170 ds3/e3 single-chip transceiver 87 of 233 9.6.5.5.1 receive c-bit ds3 frame format the ds3 frame format is shown in figure 9-13 . x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits that define the multiframe boundary. f xy are the subframe alignment bits that define the subframe boundary. note: both the m-bits and f-bits define the ds3 frame boundary. c 11 is the application identification channel (aic). c 12 is reserved for future network use, and has a value of one. c 13 is the far-end alarm and control (feac) signal. c 21 , c 22 , and c 23 are unused, and have a value of one. c 31 , c 32 , and c 33 are the c-bit parity bits used for path error monitoring. c 41 , c 42 , and c 43 are the far-end block error (febe) bits used for remote path error monitoring. c 51 , c 52 , and c 53 are the path maintenance data link (or hdlc) bits. c 61 , c 62 , and c 63 are unused, and have a value of one. c 71 , c 72 , and c 73 are unused, and have a value of one. 9.6.5.5.2 receive c-bit ds3 overhead extraction overhead extraction extracts all of the ds3 overhead bits from the c-bit ds3 frame. all of the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy are output on the receive overhead interface (roh, rohsof, and rohclk). the p 1 , p 2 , c 31 , c 32 , and c 33 bits are output as an error indication (modulo 2 addition of the calculated parity and the bit). the c 13 bit is sent over to the receive feac controller. the c 51 , c 52 , and c 53 bits are sent to the receive hdlc overhead controller. 9.6.6 m23 ds3 framer/formatter 9.6.6.1 transmit m23 ds3 frame processor the m23 ds3 frame format is shown in figure 9-13 . table 9-28 defines the framing bits for m23 ds3. x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits. f xy are the subframe alignment bits. c 11 is the application identification channel (aic). c x1 , c x2 , and c x3 are the stuff control bits for tributary #x. the x-bit, p-bit, m-bit, c-bit, and f-bit positions are overhead bits, and the remainder of the bit positions in the t3 frame are payload bits regardless of how they are marked by tden. table 9-28. m23 ds3 frame overhead bit definitions bit definition x 1 , x 2 remote defect indication (rdi) p 1 , p 2 parity bits m 1 , m 2 , and m 3 multiframe alignment bits f xy subframe alignment bits c 11 application identification channel (aic) c x1 , c x2 , and c x3 stuff control bits for tributary #x 9.6.6.2 transmit m23 ds3 frame generation m23 ds3 frame generation receives the incoming payload data stream, and overwrites all of the ds3 overhead bit locations. the multiframe alignment bits (m 1 , m 2 , and m 3 ) are overwritten with the values zero, one, and zero (010) respectively. the subframe alignment bits (f x1 , f x2 , f x3 , and f x4 ) are overwritten with the values one, zero, zero, and one (1001) respectively. the x-bits (x 1 and x 2 ) are both overwritten with the remote defect indicator (rdi). the rdi source is programmable (automatic, 1, or 0). if the rdi is generated automatically, the x-bits are set to zero when one or
ds3170 ds3/e3 single-chip transceiver 88 of 233 more of the indicated alarm conditions is present, and set to one when all of the indicated alarm conditions are absent. automatically setting rdi on los, sef, lof, or ais is individually programmable (on or off). the p-bits (p 1 and p 2 ) are both overwritten with the calculated payload parity from the previous ds3 frame. the payload parity is calculated by performing modulo 2 addition of all of the payload bits after all frame processing has been completed. p-bit generation is programmable (on or off) . the p-bits will be generated if either p-bit generation is enabled or frame generation is enabled. if c-bit generation is enabled, the bit c 11 is overwritten with an alternating one zero pattern, and all of the other c- bits (c xy ) are overwritten with zeros. if c-bit generation is disabled, then all of the c-bit timeslots (c xy ) will be treated as payload data, and passed through. c-bit generation is programmable (on or off). note: overhead insertion may still overwrite the c-bit time slots even if c-bit generation is disabled. once all of the ds3 overhead bits have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming ds3 signal is passed on directly to error insertion. frame generation is programmable (on or off). note: p-bit generation may still be performed even if frame generation is disabled. 9.6.6.3 transmit m23 ds3 error insertion error insertion inserts various types of errors into the different ds3 overhead bits. the types of errors that can be inserted are framing errors and p-bit parity errors. the framing error insertion mode is programmable (f-bit, m-bit, sef, or oomf). an f-bit error is a single subframe alignment bit (f xy ) error. an m-bit error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error. an sef error is an error in all the subframe alignment bits in a subframe (f x1 , f x2 , f x3 , and f x4 ). an oomf error is a single multiframe alignment bit (m 1 , m 2 , or m 3 ) error in each of two consecutive ds3 frames. a p-bit parity error is generated by is inverting the value of the p-bits (p 1 and p 2 ) in a single ds3 frame. p-bit parity error(s) can be inserted one error at a time, or continuously. the p-bit parity error insertion mode (single or continuous) is programmable. each error type (framing or p-bit parity) has a separate enable. continuous error insertion mode inserts errors at every opportunity. single error insertion mode inserts an error at the next opportunity when requested. the framing multi-error insertion modes (sef or oomf) insert the indicated number of error(s) at the next opportunities when requested; i.e., a single request will cause multiple errors to be inserts. the requests can be initiated by a register bit(tsei) or by the manual error insertion input (tmei). the error insertion request source (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 9.6.6.4 transmit m23 ds3 overhead insertion overhead insertion can insert any (or all) of the ds3 overhead bits into the ds3 frame. the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the p-bits (p 1 and p 2 ) are received as an error mask (modulo 2 addition of the input bit and the internally generated bit). the ds3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion. 9.6.6.5 transmit m23 ds3 ais/idle generation m23 ds3 ais/idle generation overwrites the data stream with ais or an idle signal. if transmit idle is enabled, the data stream payload is forced to a 1100 pattern with two ones immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. p 1 and p 2 are overwritten with the calculated payload parity from the previous output ds3 frame. and, c 31 , c 32 , and c 33 are overwritten with 000. if transmit ais is enabled, the data stream payload is forced to a 1010 pattern with a one immediately following each ds3 overhead bit. m 1 , m 2 , and m 3 bits are overwritten with the values zero, one, and zero (010) respectively. f x1 , f x2 , f x3 , and f x4 bits are overwritten with the values one, zero, zero, and one (1001) respectively. x 1 and x 2 are overwritten with 11. p 1 and p 2 are overwritten with the calculated payload parity from the previous ds3 frame. and, c x1 , c x2 , and c x3 are overwritten with 000. ais will overwrite a transmit idle signal.
ds3170 ds3/e3 single-chip transceiver 89 of 233 9.6.6.5.1 receive m23 ds3 frame format the ds3 frame format is shown in figure 9-13 . the x 1 and x 2 are the remote defect indication (rdi) bits (also referred to as the far-end sef/ais bits). p 1 and p 2 are the parity bits used for line error monitoring. m 1 , m 2 , and m 3 are the multiframe alignment bits that define the multiframe boundary. f xy are the subframe alignment bits that define the subframe boundary. note: both the m-bits and f-bits define the ds3 frame boundary. c 11 is the application identification channel (aic). c x1 , c x2 , and c x3 are the stuff control bits for tributary #x. 9.6.6.5.2 receive m23 ds3 overhead extraction overhead extraction extracts all of the ds3 overhead bits from the m23 ds3 frame. all of the ds3 overhead bits x 1 , x 2 , p 1 , p 2 , m x , f xy , and c xy are output on the receive overhead interface (roh, rohsof, and rohclk). the p 1 and p 2 bits are output as an error indication (modulo 2 addition of the calculated parity and the bit). 9.6.6.5.3 receive ds3 downstream ais generation downstream ds3 ais (all ?1?s) can be automatically generated on an oof, los, or ais condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when an los or ais condition is declared, or no earlier than 2.25 ms and no later than 2.75 ms after an oof condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all oof, los, and ais conditions are terminated and manual downstream ais insertion is disabled. 9.6.7 g.751 e3 framer/formatter 9.6.7.1 transmit g.751 e3 frame processor the g.751 e3 frame format is shown in figure 9-16 . fas is the frame alignment signal. a is the alarm indication bit used to indicate the presence of an alarm to the remo te terminal equipment. n is the national use bit reserved for national use. figure 9-16. g.751 e3 frame format fas 1524 bit payload 384 bits 4 rows a n 9.6.7.2 transmit g.751 e3 frame generation g.751 e3 frame generation receives the incoming payload data stream, and overwrites all of the e3 overhead bit locations. the first ten bits of the frame are overwritten with the frame alignment signal (fas) which has a value of 1111010000b. the eleventh bit of the frame is overwritten with the alarm indication (a) bit. the a bit can be generated automatically, sourced from the transmit feac controller, set to one, or set to zero. the a bit source is programmable (automatic, feac, 1, or 0). if the a bit is generated automatically, it is set to one when one or more of the indicated alarm conditions is present, and set to zero when all of the indicated alarm conditions are absent. automatically setting rdi on los, lof, or ais is individually programmable (on or off). the twelfth bit of the frame is overwritten with the national use (n) bit. the n bit can be sourced from the transmit feac controller, sourced from the transmit hdlc overhead controller, set to one, or set to zero. the n bit source is programmable (feac, hdlc, 1, or 0). note: the feac controller will source one bit per frame regardless of whether the a bit only, the n bit only, or both are programmed to be sourced from the feac controller.
ds3170 ds3/e3 single-chip transceiver 90 of 233 once all of the e3 overhead bits have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming e3 signal is passed on directly to error insertion. frame generation is programmable (on or off). 9.6.7.3 transmit g.751 e3 error insertion error insertion inserts framing errors into the frame alignment signal (fas). the type of error(s) inserted into the fas is programmable (errored fas bit or errored fas). an errored fas bit is a single bit error in the fas. an errored fas is an error in all ten bits of the fas (a value of 0000101111b is inserted in the fas). framing error(s) can be inserted one error at a time, or in four consecutive frames. the framing error insertion number (single or four) is programmable. single error insertion mode inserts an error at the next opportunity when requested. the multi-error insertion mode inserts the indicated number of errors at the next opportunities when requested. i.e., a single request will cause multiple errors to be inserted. the requests can be initiated by a register bit(tsei) or by the manual error insertion input (tmei). the error insertion initiation type (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 9.6.7.4 transmit g.751 e3 overhead insertion overhead insertion can insert any (or all) of the e3 overhead bits into the e3 frame. the fas, a bit, and n bit can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the e3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion. 9.6.7.5 transmit g.751 e3 ais generation g.751 e3 ais generation overwrites the data stream with ais. if transmit ais is enabled, the data stream (payload and e3 overhead) is forced to all ones. 9.6.7.6 receive g.751 e3 frame processor the g.751 e3 frame format is shown in figure 9-16 . fas is the frame alignment signal. a is the alarm indication bit used to indicate the presence of an alarm to the remo te terminal equipment. n is the national use bit reserved for national use. 9.6.7.6.1 receive g.751 e3 framing g.751 e3 framing determines the g.751 e3 frame boundary. the frame boundary is found by identifying the frame alignment signal (fas), which has a value of 1111010000b. the framer is an off-line framer that updates the data path frame counters when an out of frame (oof) condition has been detected. the use of an off-line framer reduces the average time required to reframe, and reduces data loss caused by burst error. the g.751 e3 framer checks each bit positi on for the fas. the frame boundary is set once the fas is identified. sinc e, the fas check is performed one bit at a time, up to 1536 checks may be needed to find the frame boundary. the data path frame counters are updated if an error free fas is received for two additional frames, and an oof condition is present, or if a manual frame resynchronization has been initiated. 9.6.7.6.2 receive g.751 e3 performance monitoring performance monitoring checks the e3 frame for alarm c onditions. the alarm conditi ons detected are oof, lof, cofa, los, ais, rua1, and rai. an out of frame (oof) condition is declared when four consecutive frame alignment signals (fas) contain one or more errors or at the next fas check when a manual reframe is requested. an oof condition is terminated when three consecutive fas?s are error free or the g.751 e3 framer updates the data path frame counters. a loss of frame (lof) condition is declared by the lof integration counter when it has been active for a total of t ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is absent for t continuous ms. t is programmable (0, 1, 2, or 3). an lof condition is terminated when an oof condition is absent for t continuous ms.
ds3170 ds3/e3 single-chip transceiver 91 of 233 a change of frame alignment (cofa) is declared when the g.751 e3 framer updates the data path frame counters with a frame alignment that is different from the current data path frame alignment. a loss of signal (los) condition is declared when the hdb3 encoder is active, and it declares an los condition. an los condition is terminated when the hdb3 encoder is inactive, or it terminates an los condition. an alarm indication signal (ais) condition is declared when 4 or less zeros are detected in each of two consecutive frame periods. an ais condition is terminated when 5 or more zeros are detected in each of two consecutive frame periods. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected and an oof condition is continuously present. a rua1 condition is terminated if in each of 4 consecutive 2047 bit windows, six or more zeros are detected or an oof condition is continuously absent. a remote alarm indication (rai) condition is declared when four consecutive frames are received with the a bit (first bit after the fas) set to one. an rai condition is terminated when four consecutive frames are received with the a bit set to zero. only framing errors are accumulated. framing errors are determined by comparing the fas to its expected value. the type of framing errors accumulated is programmable (oofs, bit, or word). an oof error increments the count whenever an oof condition is first detected. a bit error increments the count once for each bit in the fas that does not match its expected value (up to 10 per frame. a word error increments the count once for each fas that does not match its expected value (up to 1 per frame). the receive alarm indication (rai) signal is high when one or more of the indicated alarm conditions is present, and low when all of the indicated alarm conditions are absent. setting the receive alarm indication on los, oof, lof, or ais is individually programmable (on or off). 9.6.7.6.3 receive g.751 e3 overhead extraction overhead extraction extracts all of the e3 overhead bits from the g.751 e3 frame. the fas, a bit, and n bit are output on the receive overhead interface (roh, rohsof, and rohclk). in addition, the a bit is integrated and stored in a register along with a change indication, and can be output over the receive feac controller. the n bit is integrated and stored in a register along with a change indication, is sent to the receive hdlc overhead controller, and can also be sent to the receive feac controller. the bit sent to the receive feac controller is programmable (a or n). 9.6.7.6.4 receive g.751 downstream ais generation downstream g.751 e3 ais can be automatically generated on an oof, los, or ais condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when an los, oof, or ais condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all oof, los, and ais conditions are terminated and manual downstream ais insertion is disabled. rpdt will be forced to all ones during downstream ais. 9.6.8 g.832 e3 framer/formatter 9.6.8.1 transmit g.832 e3 frame processor the g.832 e3 frame format is shown in figure 9-17 .
ds3170 ds3/e3 single-chip transceiver 92 of 233 figure 9-17. g.832 e3 frame format fa1 em tr ma nr gc fa2 530 byte payload 59 columns 9 rows figure 9-18. ma byte format rdi - remote defect indicator rei - remote error indicator sl - signal label mi - multi-frame indicator tm - timing marker rdi rei sl sl sl mi mi tm msb 1 lsb 8 table 9-29 shows the function of each overhead bit in the ds3 frame. table 9-29. g.832 e3 frame overhead bit definitions byte definition fa1, fa2 frame alignment bytes em error monitoring byte tr trail trace byte ma maintenance and adaption byte nr network operator byte gc general purpose communication channel byte
ds3170 ds3/e3 single-chip transceiver 93 of 233 fa1 and fa2 are the frame alignment bytes. em is the error monitoring byte used for path error monitoring. tr is the trail trace byte used for end-to-end connectivity verification. ma is the maintenance and adaptation byte used for far-end path status and performance monitoring. nr is the network operator byte allocated for network operator maintenance purposes. gc is the general purpose communications channel byte allocated for user communications purposes. 9.6.8.2 transmit g.832 e3 frame generation g.832 e3 frame generation receives the incoming payload data stream, and overwrites all of the e3 overhead byte locations. the first two bytes of the first row in the frame are overwritten with the frame alignment bytes fa1 and fa2, which have a value of f6h and 28h respectively. the first byte in the second row of the frame is overwritten with the em byte which is a bip-8 calculated over all of the bytes of the previous frame after all frame processing (frame generation, error insertion, overhead insertion, and ais generation) has been performed. the first byte in the third row of the frame is overwritten with the tr byte which is input from the transmit trail trace controller. the first byte in the fourth row of the frame is overwritten with the ma byte (see figure 9-18 ), which consists of the rdi bit, rei bit, payload type, multiframe indicator, and timing source indicator. the rdi bit can be generated automatically, set to one, or set to zero. the rdi source is programmable (automatic, 1, or 0). if the rdi is generated automatically, it is set to one when one or more of the indicated alarm conditions is present, and set to zero when all of the indicated alarm conditions are absent. automatically setting rdi on los, lof, or ais is individually programmable (on or off). the rei bit can be generated automatically or inserted from a register bit. the rei source is programmable (automatic or register). if rei is generated automatically, it is one when at least one parity error has been detected during the previous frame. the payload type is sourced from a register. the three register bits are inserted in the third, fourth, and fifth bits of the ma byte in each frame. the multiframe indicator and timing marker bits can be directly inserted from a 3-bit register or generated from a 4- bit register. the multiframe indicator and timing marker insertion type is programmable (direct or generated). when the multiframe indicator and timing marker bits are directly inserted, the three register bits are inserted in the last three bits of the ma byte in each frame. when the multiframe indicator and timing marker bits are generated, the four timing source indicator bits are transferred in a four-f rame multiframe, msb first. the multiframe indicator bits (sixth and seventh bits of the ma byte) identify the phase of the multiframe (00, 01, 10, or 11), and the timing marker bit (eighth bit of the ma byte) contains the corre sponding timing source indicator bit (tmabr register bits tti3, tti2, tti1, or tti0 respectively). note: the initial phase of the multiframe is arbitrarily chosen. the first byte in the fifth row of the frame is overwritten with the nr byte which can be sourced from a register, from the transmit feac controller, or from the transmit hdlc controller. the nr byte source is programmable (register, feac, or hdlc). note: the hdlc controller will source eight bits per frame period regardless of whether the nr byte only, gc byte only, or both are programmed to be sourced from the hdlc controller. the first byte in the sixth row of the frame is overwritten with the gc byte which can be sourced from a register or from the transmit hdlc controller. the gc byte source is programmable (register or hdlc). once all of the e3 overhead bytes have been overwritten, the data stream is passed on to error insertion. if frame generation is disabled, the incoming e3 signal is passed on directly to error insertion. frame generation is programmable (on or off). 9.6.8.3 transmit g.832 e3 error insertion error insertion inserts various types of errors into the different e3 overhead bytes. the types of errors that can be inserted are framing errors, bip-8 parity errors, and remote error indication (rei) errors. the type of framing error(s) inserted is programmable (errored frame alignment bit or errored frame alignment word). a frame alignment bit error is a single bit error in the frame alignment word (fa1 or fa2). a frame alignment word error is an error in all sixteen bits of the frame alignment word (the values 09h and d7h are inserted in the fa1 and fa2 bytes respectively). framing error(s) can be inserted one error at a time, or four consecutive frames. the framing error insertion mode (single or four) is programmable.
ds3170 ds3/e3 single-chip transceiver 94 of 233 the type of bip-8 error(s) inserted is programmable (errored bip-8 bit, or errored bip-8 byte). an errored bip-8 bit is inverting a single bit error in the em byte. an errored bip-8 byte is inverting all eight bits in the em byte. bip-8 error(s) can be inserted one error at a time, or continuously. the bip-8 error insertion mode (single or continuous) is programmable. an rei error is generated by forcing the second bit of the ma byte to a one. rei error(s) can be inserted one error at a time, or continuously. the rei error insertion mode (single or continuous) is programmable. each error type (framing, bip-8, or rei) has a separate enable. continuous error insertion mode inserts errors at every opportunity. single error insertion mode inserts an error at the next opportunity when requested. the framing multi-error insertion mode inserts the indicated number of errors at the next opportunities when requested. i.e., a single request will cause multiple errors to be inserted. the requests can be initiated by a register bit(tsei) or by the manual error insertion input (tmei). the error insertion request source (register or input) is programmable. the insertion of each particular error type is individually enabled. once all error insertion has been performed, the data stream is passed on to overhead insertion. 9.6.8.4 transmit g.832 e3 overhead insertion overhead insertion can insert any (or all) of the e3 overhead bytes into the e3 frame. the e3 overhead bytes fa1, fa2, em, tr, ma, nr, and gc can be sourced from the transmit overhead interface (tohclk, toh, tohen, and tohsof). the em byte is sourced as an error mask (modulo 2 addition of the input em byte and the generated em byte). the e3 overhead insertion is fully controlled by the transmit overhead interface. if the transmit overhead data enable signal (tohen) is driven high, then the bit on the transmit overhead signal (toh) is inserted into the output data stream. insertion of bits using the toh signal overwrites internal overhead insertion. 9.6.8.5 transmit g.832 e3 ais generation g.832 e3 ais generation overwrites the data stream with ais. if transmit ais is enabled, the data stream (payload and e3 overhead) is forced to all ones. 9.6.8.6 receive g.832 e3 frame processor the g.832 e3 frame format is shown in figure 9-17 . fa1 and fa2 are the frame alignment bytes. em is the error monitoring byte used for path error monitoring. tr is the trail trace byte used for end-to-end connectivity verification. ma is the maintenance and adaptation byte used for far-end path status and performance monitoring (see figure 9-18 ). nr is the network operator byte allocated for network operator maintenance purposes. gc is the general purpose communications channel byte allocated for user communications purposes. 9.6.8.7 receive g.832 e3 framing g.832 e3 framing determines the g.832 e3 frame boundary. the frame boundary is found by identifying the frame alignment bytes fa1 and fa2, which have a value of f6h and 28h respectively. the framer is an off-line framer that updates the data path frame counters when an out of frame (oof) condition has been detected. the use of an off-line framer reduces the average time required to reframe, and reduces data loss caused by burst error. the g.832 e3 framer checks each bit position for the frame alignment word (fa1 and fa2). the frame boundary is set once the frame alignment word is identified. since, the frame alignment word check is performed one bit at a time, up to 4296 checks may be needed to find the frame boundary. the data path frame counters are updated if an error free frame alignment word is received for two additional frames, and an oof condition is present. 9.6.8.8 receive g.832 e3 performance monitoring performance monitoring checks the e3 frame for alarm c onditions and errors . the alarm conditions detected are oof, lof, cofa, los, ais, rua1, and rdi. the errors accumulated are framing, parity, and remote error indication (rei) errors. an out of frame (oof) condition is declared when four consecutive frame alignment words (fa1 and fa2) contain one or more errors, when 986 or more frames out of 1,000 frames has a bip-8 block error, or at the next framing word check when a manual reframe is requested. an oof condition is terminated when three consecutive frame alignment words (fa1 and fa2) are error free or the g.832 e3 framer updates the data path frame counters. a loss of frame (lof) condition is declared by the lof integration counter when it has been active for a total of t ms. the lof integration counter is active (increments count) when an oof condition is present, it is inactive (holds count) when an oof condition is absent, and it is reset when an oof condition is absent for t continuous ms. t is programmable (0, 1, 2, or 3). an lof condition is terminated when an oof condition is absent for t continuous ms.
ds3170 ds3/e3 single-chip transceiver 95 of 233 a change of frame alignment (cofa) is declared when the g.832 e3 framer updates the data path frame counters with a frame alignment that is different from the current data path frame alignment. a loss of signal (los) condition is declared when the hdb3 encoder is active, and it declares an los condition. an los condition is terminated when the hdb3 encoder is inactive, or it terminates an los condition. an alarm indication signal (ais) condition is declared when 7 or less zeros are detected in each of two consecutive frame periods that do not contain a frame alignment word. an ais condition is terminated when 8 or more zeros are detected in each of two consecutive frame periods. a receive unframed all 1?s (rua1) condition is declared if in each of 4 consecutive 2047 bit windows, five or less zeros are detected and an oof condition is continuously present. a rua1 condition is terminated if in each of 4 consecutive 2047 bit windows, six or more zeros are detected or an oof condition is continuously absent. a remote defect indication (rdi) condition is declared when four consecutive frames are received with the rdi bit (first bit of ma byte) set to one. an rdi condition is terminated when four consecutive frames are received with the rdi bit set to zero. three types of errors are accumulated, framing, parity, and remote error indication (rei) errors. framing errors are determined by comparing fa1 and fa2 to their expected values. the type of framing errors accumulated is programmable (oofs, bit, byte, or word). an oof error increments the count whenever an oof condition is first detected. a bit error increments the count once for each bit in fa1 and each bit in fa2 that does not match its expected value (up to 16 per frame). a byte error increments the count once for each fa byte (fa1 or fa2) that does not match its expected value (up to 2 per frame). a word error increments the count once for each fa word (both fa1 and fa2) that does not match its expected value (up to 1 per frame). parity errors are determined by calculating the bip-8 (8-bit interleaved parity) of the current e3 frame (overhead and payload bytes), and comparing the calculated bip-8 to the em byte in the next frame. the type of parity errors accumulated is programmable (bit or block). a bit error increments the count once for each bit in the em byte that does not match the corresponding bit in the calculated bip-8 (up to 8 per frame). a block error increments the count if any bit in the em byte does not match the corresponding bit in the calculated bip-8 (up to 1 per frame). rei errors are determined by the rei bit (second bit of ma byte). a one indicates an error and a zero indicates no errors. the receive alarm indication (rai) signal is high when one or more of the indicated alarm conditions is present, and low when all of the indicated alarm conditions are absent. setting the receive alarm indication on los, oof, lof, or ais is individually programmable (on or off). the receive error indication (rei) signal will transition from low to high once for each frame in which a parity error is detected. 9.6.8.9 receive g.832 e3 overhead extraction overhead extraction extracts all of the e3 overhead bytes from the g.832 e3 frame. all of the e3 overhead bytes fa1, fa2, em, tr, ma, nr, and gc are output on the receive overhead interface (roh, rohsof, and rohclk). the em byte is output as an error indication (modulo 2 addition of the calculated bip-8 and the em byte. the tr byte is sent to the receive trail trace controller. the payload type (third, fourth, and fifth bits of the ma byte) is integrated and stored in a register with change and unstable indications. the integrated received payload type is also compared against an expected payload type. if the received and expected payload types do not match (see table 9-30 ), a mismatch indication is set.
ds3170 ds3/e3 single-chip transceiver 96 of 233 table 9-30. payload label match status expected received status 000 000 match 000 001 mismatch 000 xxx mism atch 001 000 mismatch 001 001 match 001 xxx match xxx 000 mism atch xxx 001 match xxx xxx match xxx yyy mismatch xxx and yyy equal any value other than 000 or 001; xxx  yyy. the multiframe indicator and timing marker bits (sixth, seventh, and eighth bits of the ma byte) can be integrated and stored in three register bits or extracted, integrated, and stored in four register bits. the bits (three or four) are stored with a change indication. the multiframe indicator and timing marker storage type is programmable (integrated or extracted). when the multiframe indicator and timing marker bits are integrated, the last three bits of the ma byte are integrated and stored in three register bits. when the multiframe indicator and timing marker bits are extracted, four timing source indicator bits are transferred in a four-frame multiframe, msb first. the multiframe indicator bits (sixth and seventh bits of the ma byte) identify the phase of the multiframe (00, 01, 10, or 11). the timing marker bit (eighth bit of the ma byte) contains the timing source indicator bit indicated by the multiframe indicator bits (first, second, third, or fourth bit respectively). the four timing source indicator bits are extracted from the multiframe, integrated, and stored in four register bits with unstable and change indications. the nr byte is integrated and stored in a register along with a change indication, it is sent to the receive feac controller, and it can be sent to the receive hdlc controller. the byte sent to the receive hdlc controller is programmable (nr or gc). the gc byte is integrated and stored in a register along with a change indication, and can be sent to the receive hdlc controller. the byte sent to the receive hdlc controller is programmable (nr or gc). 9.6.8.10 receive g.832 downstream ais generation downstream g.832 e3 ais can be automatically generated on an oof, los, or ais condition or manually inserted. if automatic downstream ais is enabled, downstream ais is inserted when an los, oof, or ais condition is declared. automatic downstream ais is programmable (on or off). if manual downstream ais insertion is enabled, downstream ais is inserted. manual downstream ais insertion is programmable (on or off). downstream ais is removed when all oof, los, and ais conditions are terminated and manual downstream ais insertion is disabled. rpdt will be forced to all ones during downstream ais. 9.7 hdlc overhead controller 9.7.1 general description the ds3170 device contains a built-in hdlc controller with 256 byte fifos for insertion/extraction of ds3 pmdl, g.751 sn bit and g.832 nr/gc bytes. the hdlc overhead controller demaps hdlc overhead packets from the ds3/e3 data stream in the receive direction and maps hdlc packets into the ds3/e3 data stream in the transmit direction. the receive direction performs packet processing and stores the packet data in the fifo. it removes packet data from the fifo and outputs the packet data to the microprocessor via the register interface. the transmit direction inputs the packet data from the microprocessor via the register interface and stores the packet data in the fifo. it removes the packet data from the fifo and performs packet processing.
ds3170 ds3/e3 single-chip transceiver 97 of 233 the bits in a byte are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the lowest numbered bit (0), and the lsb is stored in the highest numbered bit (7). this is to differentiate between a byte in a register and the corresponding byte in a signal. see figure 9-19 for the location of hdlc controllers within the ds3170 device. figure 9-19. hdlc controller block diagram 9.7.2 features  programmable inter-frame fill ? the inter-frame fill between packets can be all 1?s or flags.  programmable fcs generation / monitoring ? an fcs-16 can be generated and appended to the end of the packet, and the fcs can be checked and removed from the end of the packet.  programmable bit reordering ? the packet data can be can be output msb first or lsb first from the fifo.  programmable data inversion ? the packet data can be inverted immediately after packet processing on the transmit, and immediately before packet processing on the receive.  fully independent transmit and receive paths  fully independent line side and register interface timing ? the data storage can be read from or written to via the microprocessor interface while all line side clocks and signals are inactive, and read from or written to via the line side while all microprocessor interface clocks and signals are inactive. 9.7.3 transmit fifo the transmit fifo block contains memory for 256 bytes of dat a with data status information and controller circuitry for reading and writing the memory. the transmit fifo controller functions include filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the transmit fifo receives data and status from the microprocessor interface, and stores the data along with the data status information in memory. the transmit packet processor reads the data and data status information from the transmit fifo. the transmit fifo also outputs fifo fill status (empty/data storage available/full) via the microprocessor interface. all operations are byte based. the transmit fifo is considered empty when its memory does not contain any data. the transmit fifo is considered to have data storage available when its memory has a programmable number of bytes or more available for storage. the transmit fifo is considered full when it does not have any space available for storage. the transmit fifo accepts data from the register interface until full. if the transmit fifo is written to while the fifo is full, the write is ignored, and a fifo overflow condition is declared. the transmit packet processor reads the transmit fifo. if the transmit packet processor attempts to read the transmit fifo while it is empty, a fifo underflow condition is declared. ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder
ds3170 ds3/e3 single-chip transceiver 98 of 233 9.7.4 transmit hdlc overhead processor the transmit hdlc overhead processor accepts data from the transmit fifo, performs bit reordering, fcs processing, stuffing, packet abort sequence insertion, and inter-frame padding. a byte is read from the transmit fifo with a packet end status. when a byte is marked with a packet end indication, the output data stream will be padded with ffh and marked with a fifo empty indication if the transmit fifo contains less than two bytes or transmit packet start is disabled. transmit packet start is programmable (on or off). when the transmit packet processor reads the transmit fifo while it is empty, the output data stream is marked with an abort indication. once the transmit fifo is empty, the output data stream will be padded with interframe fill until the transmit fifo contains two or more bytes of data and transmit packet start is enabled. bit reordering changes the bit order of each byte. if bit reordering is disabled, the outgoing 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is input from the transmit fifo with the msb in tfd[0] and the lsb in tfd[7] of the transmit fifo data tfd[7:0]. if bit reordering is enabled, the outgoing 8-bit data stream dt[1:8] is input from the transmit fifo with the msb in tfd[7] and the lsb in tfd[0] of the transmit fifo data tfd[7:0]. dt[1] is the first bit transmitted on the outgoing data stream. fcs processing calculates an fcs and appends it to the packet. fcs calculation is a crc-16 calculation over the entire packet. the polynomial used for the crc-16 is x 16 + x 12 + x 5 + 1. the crc-16 is inverted after calculation, and appended to the packet. for diagnostic purposes, an fcs error can be inserted. this is accomplished by appending the calculated crc-16 without inverting it. fcs e rror insertion is programmable (on or off). when fcs processing is disabled, the packet is output without appending an fcs. fcs processing is programmable (on or off). stuffing inserts control data into the packet to prevent packet data from mimicking flags. stuffing is halted during fifo empty periods. the 8-bit parallel data stream is multiplexed into a serial data stream, and bit stuffing is performed. bit stuffing consists of inserting a '0' directly following any five contiguous '1's. stuffing is performed from a packet start until a packet end. inter-frame padding inserts inter-frame fill between the packet start and end flags when the fifo is empty. the inter-frame fill can be flags or '1's. if the inter-frame fill is flags, flags (minimum two) are inserted until a packet start is received. if the inter-frame fill is all '1's, an end flag is inserted, ?1?s are inserted until a packet start is received, and a start flag is inserted after the ?1?s. the number of '1's between the end flag and start flag may not be an integer number of bytes, however, the inter-frame fill will be at least 15 consecutive '1's. if the fifo is not empty between a packet end and a packet start, then two flags are inserted between the packet end and packet start. the inter-frame padding type is programmable (flags or ?1?s). packet abort insertion inserts a packet abort sequences as necessary. if a packet abort indication is detected, a packet abort sequence is inserted and inter-frame padding is done until a packet start is detected. the abort sequence is ffh. once all packet processing has been completed, the datastream is inserted into the ds3/e3 datastream at the proper locations. if transmit data inversion is enabled, the outgoing data is inverted after packet processing is performed. transmit data inversion is programmable (on or off). 9.7.5 receive hdlc overhead processor the receive hdlc overhead packet processor accepts data from the ds3/e3 framer and performs packet delineation, inter-frame fill filtering, packet abort detection, destuffing, fcs processing, and bit reordering. if receive data inversion is enabled, the incoming data is inverted before packet processing is performed. receive data inversion is programmable (on or off). packet delineation determines the packet boundary by identifying a packet start flag. each time slot is checked for a flag sequence (7eh). once a flag is found, if it is identified as a start or end flag, and the packet boundary is set. there may be a single flag (both end and start) between packets, there may be an end flag and a start flag with a shared zero (011111101111110) between packets, there may be an end flag and a start flag (two flags) between packets, or there may be an end flag, inter-frame fill, and a start flag between packets. the flag check is performed one bit at a time. inter-frame fill filtering removes the inter-frame fill between a start flag and an end flag. all inter-frame fill is discarded. the inter-frame fill can be flags (01111110) or all '1's. when inter-frame fill is all ?1?s, the number of '1's between the end flag and the start flag may not be an integer number of bytes. when inter-frame fill is flags, the
ds3170 ds3/e3 single-chip transceiver 99 of 233 number of bits between the end flag and the start flag will be an integer number of bytes (flags). any time there is less than 16 bits between two flags, the data will be discarded. packet abort detection searches for a packet abort sequence. between a packet start flag and a packet end flag, if an abort sequence is detected, the packet is marked with an abort indication, and all subsequent data is discarded until a packet start flag is detected. the abort sequence is seven consecutive ones. packet abort detection searches for a packet abort sequence. between a packet start flag and a packet end flag, if an abort sequence is detected, the packet is marked with an abort indication, and all subsequent data is discarded until a packet start flag is detected. the abort sequence is seven consecutive ones. destuffing removes the extra data inserted to prevent data from mimicking a flag or an abort sequence. after a start flag is detected, destuffing is performed until an end flag is detected. destuffing consists of discarding any '0' that directly follows five contiguous '1's. after destuffing is completed, the serial bit stream is demultiplexed into an 8-bit parallel data stream and passed on with packet start, packet end, and packet abort indications. if there is less than eight bits in the last byte, an invalid packet status is set, and the packet is tagged with an abort indication. if a packet ends with five contiguous '1's, the packet will be processed as a normal packet regardless of whether or not the five contiguous '1's are followed by a '0'. fcs processing checks the fcs, discards the fcs bytes, and marks fcs erred packets. the fcs is checked for errors, and the last two bytes are removed from the end of the packet. if an fcs error is detected, the packet is marked with an fcs error indication. the hdlc controller performs fcs-16 checking. fcs processing is programmable (on or off). if fcs processing is disabled, fcs checking is not performed, and all of the packet data is passed on. bit reordering changes the bit order of each byte. if bit reordering is disabled, the incoming 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is output to the receive fifo with the msb in rfd[0] and the lsb in rfd[7] of the receive fifo data rfd[7:0]. if bit reordering is enabled, the incoming 8-bit data stream dt[1:8] is output to the receive fifo with the msb in rfd[7] and the lsb in rfd[0] of the receive fifo data rfd[7:0]. dt[1] is the first bit received from the incoming data stream. once all of the packet processing has been completed, the 8-bit parallel data stream is passed on to the receive fifo with packet start, packet end, and packet error indications. 9.7.6 receive fifo the receive fifo block contains memory for 256 bytes of data with data status information and controller circuitry for reading and writing the memory. the receive fifo controller controls filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the receive fifo accepts data and data status from the receive packet processor and stores the data along with data status information in memory. the data is read from the receive fifo via the microprocessor interface. the receive fifo also outputs fifo fill status (empty/data available/full) via the microprocessor interface. all operations are byte based. the receive fifo is considered empty when it does not contain any data. the receive fifo is considered to have data available when there is a programmable number of bytes or more stored in the memory. the receive fifo is considered full when it does not have any space available for storage. the receive fifo accepts data from the receive packet processor until full. if a packet start is received while full, the data is discarded and a fifo overflow condition is declared. if any other packet data is received while full, the current packet being transferred is marked with an abort indication, and a fifo overflow condition is declared. once a fifo overflow condition is declared, the receive fifo will discard incoming data until a packet start is received while the receive fifo has sixteen or more bytes available for storage. if the receive fifo is read while the fifo is empty, the read is ignored, and an invalid data indication given. 9.8 trail trace controller 9.8.1 general description the ds3170 has a dedicated trail trace buffer for e3-g.832 link management the trail trace controller performs extraction and storage of the incoming g.832 trail access point identifier in a 16-byte receive register.
ds3170 ds3/e3 single-chip transceiver 100 of 233 the trail trace controller extracts/inserts e3-g.832 trail access point identifiers using a 16-byte register(one for transmit, one for receive). the trail trace controller demaps a 16-byte trail trace identifier from the e3-g.832 datastream in the receive direction and maps a trace identifier into the e3-g.832 datastream in the transmit direction. the receive direction inputs the trace id data stream, performs trace id processing, and stores the trace identifier data in the data storage using line timing. it removes trace identifier data from the data storage and outputs the trace identifier data to the microprocessor via the microprocessor interface using register timing. the data is forced to all ones during los, lof and ais detection to eliminate false messages the transmit direction inputs the trace identifier data from the microprocessor via the microprocessor interface and stores the trace identifier data in the data storage using register timing. it removes the trace identifier data from the data storage, performs trace id processing, and outputs the trace id data stream. refer to figure 9-20 for the location of the trail trace controller with the ds3170 device. figure 9-20. trail trace controller block diagram 9.8.2 features  programmable trail trace id ? the trail trace id controller can be programmed to handle a 16-byte trail trace identifier (trail trace mode).  programmable transmit trace id ? all sixteen bytes of the transmit trail trace identifier are programmable.  programmable receive expected trace id ? a 16-byte expected trail trace identifier can be programmed. both a mismatch and unstable indication are provided.  programmable trace id multiframe alignment ? the transmit side can be programmed to perform trail trace multiframe alignment insertion. the receive side can be programmed to perform trail trace multiframe synchronization.  programmable bit reordering ? the trace identifier data can be output msb first or lsb first from the data storage.  programmable data inversion ? the trace identifier data can be inverted immediately after trace id processing on the transmit side, and immediately before trail id processing on the receive side.  fully independent transmit and receive sides  fully independent line side and register interface timing ? the data storage can be read from or written to via the microprocessor interface while all line side clocks and signals are inactive, and read from or written to via the line side while all microprocessor interface clocks and signals are inactive. 9.8.3 functional description the bits in a byte are received most significant bit (msb) first and least significant bit (lsb) last. when they are output serially, they are output msb first and lsb last. the bits in a byte in an incoming signal are numbered in the ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder
ds3170 ds3/e3 single-chip transceiver 101 of 233 order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 9.8.4 transmit data storage the transmit data storage block contains memory for 16 bytes of data and controller circuitry for reading and writing the memory. the transmit data storage controller functions include filling the memory and maintaining the memory read and write pointers. the transmit data storage receives data from the microprocessor interface, and stores the data in memory. the transmit trace id processor reads the data from the transmit data storage. the transmit data storage contains the transmit trail trace identifier. note: the contents of the transmit trail (path) trace identifier memory will be random data immediately after power-up, and will not change during a reset ( rst or drst low). 9.8.5 transmit trace id processor the transmit trace id processor accepts data from transmit data storage, processes the data according to the transmit trace id mode, and outputs the serial trace id data stream. 9.8.6 transmit trail trace processing the transmit trail trace processing accepts data from the transmit data storage performs bit reordering and multiframe alignment insertion. bit reordering changes the bit order of each byte. if bit reordering is disabled, the outgoing 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is input from the transmit data storage with the msb in ttd[7] and the lsb in ttd[0] of the transmit trace id data ttd[7:0]. if bit reordering is enabled, the outgoing 8- bit data stream dt[1:8] is input from the transmit data storage with the msb is in ttd[0] and the lsb is in ttd[7] of the transmit trace id data ttd[7:0]. dt[1] is the first bit transmitted on the outgoing data stream. multiframe alignment insertion overwrites the msb of each trail trace byte with the multiframe alignment signal. the msb of the first byte in the trail trace identifier is overwritten with a one, the msb of the other fifteen bytes in the trail trace identifier are overwritten with a zero. multiframe alignment insertion is programmable (on or off). if transmit data inversion is enabled, the outgoing data is inverted after trail trace processing is performed. transmit data inversion is programmable (on or off). if transmit trail trace identifier idle (idle) is enabled, the trail trace data is overwritten with all zeros. transmit idle is programmable (on or off). 9.8.7 receive trace id processor the receive trace id processor receives the incoming serial trace id data stream and processes the incoming data according to the receive trace id mode, and passes the trace id data on to receive data storage. the bits in a byte are received msb first, lsb last. the bits in a byte in an incoming signal are numbered in the order they are received, 1 (msb) to 8 (lsb). however, when a byte is stored in a register, the msb is stored in the highest numbered bit (7), and the lsb is stored in the lowest numbered bit (0). this is to differentiate between a byte in a register and the corresponding byte in a signal. 9.8.8 receive trail trace processing the receive trail trace processing accepts an incoming data line and performs trail trace alignment, trail trace extraction, expected trail trace comparison, and bit reordering. if receive data inversion is enabled, the incoming data is inverted before trail trace processing is performed. receive data inversion is programmable (on or off). trail trace alignment determines the trail trace identifier boundary by identifying the multiframe alignment signal. the multiframe alignment signal (mas) is located in the msb of each byte ( figure 9-21 ). the mas bits are each checked for the multiframe alignment start bit, which is a one. once a multiframe alignment start bit is found, the remaining fifteen bits of the mas are verified as being zero. the mas check is performed one byte at a time. multiframe alignment is programmable (on or off). when multiframe alignment is disabled, the incoming bytes are sequentially stored starting with a random byte.
ds3170 ds3/e3 single-chip transceiver 102 of 233 figure 9-21. trail trace byte (dt = trail trace data) bit 1 msb bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 bit 8 lsb mas or dt[1] dt[2] dt[3] dt[4] dt[5] dt[6] dt[7] dt[8] trail trace extraction extracts the trail trace identifier from the incoming trail trace data stream, generates a trail trace identifier change indication, detects a trail trace identifier idle (idle) condition, and detects a trail trace identifier unstable (tiu) condition. the trail trace identifier bytes are stored sequentially with the first byte (mas equals 1 if trail trace alignment is enabled) being stored in the first byte of memory. if the exact same nonzero trail trace identifier is received five consecutive times and it is different from the receive trail trace identifier, a receive trail trace identifier update is performed, and the receive trail trace identifier change indication is set. an idle condition is declared when an all zeros trail trace identifier is received five consecutive times. an idle condition is terminated when a nonzero trail trace identifier is received five consecutive times or a tiu condition is declared. a tiu condition is declared if eight consecutive trail trace identifiers are received that do not match either the receive trail trace identifier or the previously stored current trail trace identifier. the tiu condition is terminated when a nonzero trail trace identifier is received five consecutive times or an idle condition is declared. expected trail trace comparison compares the received and expected trail trace identifiers. the comparison is a 7- bit comparison of the seven least significant bits (dt[2:8] (see figure 9-21 ) of each trail trace identifier byte (the multiframe alignment signal is ignored). if the received and expected trail trace identifiers do not match, a trail trace identifier mismatch (tim) condition is declared. if they do match the tim condition is terminated. the 16-byte expected trail trace identifier is programmable. expected trail trace comparison is programmable (on or off). if multiframe alignment is disabled, expected trail trace comparison is disabled. immediately after a reset, the receive trail trace identifier is invalid. all comparisons between the receive trail trace identifier and expected trail trace identifier will match (a tim condition cannot occur) until after the first receive trail trace identifier update occurs. bit reordering changes the bit order of each byte. if bit reordering is disabled, the incoming 8-bit data stream dt[1:8] with dt[1] being the msb and dt[8] being the lsb is output to the receive data storage with the msb in rtd[7] and the lsb in rtd[0] of the receive trace id data rtd[7:0]. if bit reordering is enabled, the incoming 8-bit data stream dt[1:8] is output to the receive data storage with the msb in rtd[0] and the lsb in rtd[7] of the receive trace id data rtd[7:0]. dt[1] is the first bit received from the incoming data stream. once all of the trail trace processing has been completed, the 8-bit parallel data stream is passed on to the receive data storage. 9.8.9 receive data storage the receive data storage block contains memory for 48 bytes of data, maintains data status information, and has controller circuitry for reading and writing the memory. the receive data storage controller functions include filling the memory and maintaining the memory read and write pointers. the receive data storage accepts data and data status from the receive trace id processor, stores the data in memory, and maintains data status information. the data is read from the receive data storage via the microprocessor interface. the receive data storage contains the current trail trace identifier, the receive trail trace identifier, and the expected trail trace identifier. 9.9 feac controller 9.9.1 general description the feac controller demaps feac codewords from a ds3/e3 data stream in the receive direction and maps feac codewords into a ds3/e3 data stream in the transmit direction. the transmit direction demaps feac codewords from a ds3/e3 data stream. the receive direction performs feac processing, and stores the codewords in the fifo using line timing. it removes the codewords from the fifo and outputs them to the microprocessor via the register interface.
ds3170 ds3/e3 single-chip transceiver 103 of 233 the transmit direction inputs codewords from the microprocessor via the register interface and stores the codewords. it removes the codewords and performs feac processing. see figure 9-22 for the location of the feac controller in the block diagram figure 9-22. feac controller block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 9.9.2 features  programmable dual codeword output ? the transmit side can be programmed to output a single codeword ten times, one codeword ten times followed by a second codeword ten times, or a single codeword continuously.  four codeword receive fifo  fully independent transmit and receive paths  fully independent line side and register side timing ? the fifo can be read from or written to at the register interface side while all line side clocks and signals are inactive, and read from or written to at the line side while all register interface side clocks and signals are inactive. 9.9.3 functional description the bits in a code are received msb first, lsb last. when they are output serially, they are output msb first, lsb last. the bits in a code in an incoming signal are numbered in the order they are received, 1 (msb) to 6 (lsb). however, when a code is stored in a register, the msb is stored in the lowest numbered bit (0), and the lsb is stored in the highest numbered bit (5). this is to differentiate between a code in a register and the corresponding code in a signal. 9.9.3.1 transmit data storage the transmit data storage block contains the registers for two feac codes (c{1:6]) and controller circuitry for reading and writing the memory. the transmit data storage receives data from the microprocessor interface, and stores the data in memory. the transmit feac processor reads the data from the transmit data storage. 9.9.3.2 transmit feac processor the transmit feac processor accepts data from the transmit data storage performs feac processing. the feac codes are read from transmit data storage with the msb (c[1]) in tfca[0] or tfcb[0], and the lsb (c[6]) in tfca[5] or tfcb[5]. feac processing has four modes of operation (idle, single code, dual code, and continuous code). in idle mode, all ones are output on the outgoing feac data stream. in single code mode, the code from tfca[5:0] is inserted into a codeword ( figure 9-23 ), and sent ten consecutive times. once the ten codewords have been sent, all ones are output. in dual code mode, the code from tfca[5:0] is inserted into a codeword, and sent ten consecutive times. then the code from tfcb[5:0] is inserted into a codeword, and sent ten consecutive times. once both codewords
ds3170 ds3/e3 single-chip transceiver 104 of 233 have both been sent ten times, all ones are output. in continuous mode, the code from tfca[5:0] is inserted into a codeword, and sent until the mode is changed 9.9.3.3 receive feac processor the receive feac processor accepts an incoming data line and extracts all overhead and performs feac code extraction , and idle detection. figure 9-23. feac codeword format cx - feac code receive/transmit order 1 0 c6 0 msb 1 lsb 16 1 1 1 1 1 1 1 c5 c4 c3 c2 c1 feac code extraction determines the codeword boundary by identifying the codeword sequence and extracts the feac code. a feac codeword is a repeating 16-bit pattern (see figure 9-23 ). the codeword sequence is the pattern (0 xxxxxx 011111111) that contains each feac code (c[6:1]). each time slot is checked for a codeword sequence. once a codeword sequence is found, the feac code is checked. if the same feac code is received in three consecutive codewords without errors, the feac code detection indication is set, and the feac code is stored in the receive fifo with the msb (c[1]) in rff[0], and the lsb (c[6]) in rff[5]. the feac code detection indication is cleared if two consecutively received feac codewords differ from the current feac codeword, or a feac idle condition is detected. idle detection detects a feac idle condition. a feac idle condition is declared if sixteen consecutive ones are received. the feac idle condition is terminated when the feac code detection indication is set. 9.9.3.4 receive feac fifo the receive fifo block contains memory for four feac codes (c{1:6]) and controller circuitry for reading and writing the memory. the receive fifo controller functions include filling the memory, tracking the memory fill level, maintaining the memory read and write pointers, and detecting memory overflow and underflow conditions. the receive fifo accepts data from the receive feac processor and stores the data in memory. the data is read from the receive fifo via the microprocessor interface. the receive fifo also outputs fifo fill status (empty) via the microprocessor interface. all operations are code based (six bits). the receive fifo is considered empty when it does not contain any data. the receive fifo accepts data from the receive feac processor until full. if a feac code is received while full, the data is discarded and a fifo overflow condition is declared. if the receive fifo is read while the fifo is empty, the read is ignored. 9.10 line encoder/decoder 9.10.1 general description the b3zs/hdb3 decoder converts a bipolar signal to a unipolar signal in the receive direction. b3zs/hdb3 encoder converts a unipolar signal to a bipolar signal in the transmit direction. in the transmit direction, the encoder receives a unipolar signal, converts it to a bipolar signal, optionally performs zero suppression encoding, optionally inserts errors, and outputs the bipolar signals. in the receive direction, the decoder receives a bipolar signal, monitors it for alarms and errors, optionally performs zero suppression decoding, and converts it to a unipolar signal. if the port line interface is configured for a unipolar mode, the bpv detector will count pulses on the rlcv pin. see figure 9-24 for the locations of the line encoder/ decorder block in the ds3170 device.
ds3170 ds3/e3 single-chip transceiver 105 of 233 figure 9-24. line encoder/decoder block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 9.10.2 features  performs bipolar to unipolar encoding and decoding ? converts a unipolar signal into an ami bipolar signal (pos data, and neg data) and vice versa.  programmable zero suppression ? b3zs or hdb3 zero suppression encoding and decoding can be performed, or the bipolar data stream can be left as an ami encoded data stream.  programmable receive zero suppression code format ? the signature of b3zs or hdb3 is selectable .  generates and detects alarms and errors ? in the receive direction, detects los alarm condition bpv errors, and exz errors. in the transmit direction, errors can be inserted into the outgoing data stream. 9.10.3 b3zs/hdb3 encoder b3zs/hdb3 encoder performs unipolar to bipolar conversion and zero suppression encoding. unipolar to bipolar conversion converts the unipolar data stream into an ami bipolar data stream (pos and neg). in an ami bipolar data stream a zero is represented by a zero on both the pos and neg signals, and a one is represented by a one on a bipolar signal (pos or neg), and a zero on the other bipolar signal (neg or pos). successive ones are represented by ones that are alternately output on the pos and neg signals. i.e., if a one is represented by a one on pos and a zero on neg, the next one will be represented by a one on neg and a zero on pos. zero suppression encoding converts an ami bipolar data stream into a b3zs or hdb3 encoded bipolar data stream. a b3zs encoded bipolar signal is generated by inserting a b3zs signature into the bipolar data stream if both the pos and neg signals are zero for three consecutive clock periods. an hdb3 encoded bipolar signal is generated by inserting an hdb3 signature into the bipolar data stream if both the pos and neg signals are zero for four consecutive clock periods. zero suppression encoding can be disabled which will result in ami-coded data. error insertion is also performed. error insertion inserts bipolar violation (bpv) or excessive zero (exz) errors onto the bipolar signal. a bpv error will be inserted when three consecutive ones occur. an exz error will be inserted when three (or four) consecutive zeros on the bipolar signal occur by inhibiting the insertion of a b3zs (hdb3) signature. there will be at least one intervening pulse between consecutive bpv or exz errors. a single bpv or exz error inserted will be detected as a single bpv/exz error at the far-end, and will not cause any other type of error to be detected. for example, if a bpv error is inserted, the far-end should not also detect a data error. 9.10.4 transmit line interface the transmit line interface accepts a bipolar data stream from the b3zs/hdb3 encoder, performs error insertion, and transmits the bipolar data stream. error insertion inserts bpv or exz errors into the bipolar signal. when a bpv error is to be inserted, the transmit line interface waits for the next occurrence of three consecutive ones. the first bipolar one is generated according to the normal ami rules. the second bipolar one is generated by transmitting the same values on tpos and tneg
ds3170 ds3/e3 single-chip transceiver 106 of 233 as the values for the first one. the third bipolar one is generated according to the normal ami rules. when an exz error is to be inserted, the transmit line interface waits for the next occurrence of three (four) consecutive zeros on the bipolar signal, and inhibits the insertion of a b3zs (hdb3) signature. there must be at least one intervening one between consecutive bpv or exz errors. a single bpv or exz error inserted must be detected as a single bpv/exz error at the far-end, and not cause any other type of error to be detected. for example, if a bpv error is inserted, the far-end should not also detect a data error. if a second error insertion request of a given type (bpv or exz) is initiated before a previous request has been completed, the second request will be ignored. the outgoing bipolar data stream consists of positive pulse data (tpos) and negative pulse data (tneg). tpos and tneg are updated on the rising edge of tlclk. 9.10.5 receive line interface the receive line interface receives a bipolar signal. the incoming bipolar data line consists of positive pulse data (rpos), negative pulse data (rneg), and clock (rlclk) signals. rpos and rneg are sampled on the rising edge of rlclk. the incoming bipolar signal is checked for a loss of signal (los) condition, and passed on to b3zs/hdb3 decoder. an los condition is declared if both rpos and rneg do not have any transitions for 192 clock cycles. the los condition is terminated after 192 clock cycles without any exz errors. note: when zero suppression (b3zs or hdb3) decoding is disabled, the los condition is cleared, and cannot be detected. 9.10.6 b3zs/hdb3 decoder the b3zs/hdb3 decoder receives a bipolar signal from the liu (or the rpos/rneg pins). the incoming bipolar signal is checked for a loss of signal (los) condition. an los condition is declared if both the positive pulse data and negative pulse data signals do not have any transitions for 192 clock cycles. the los condition is terminated after 192 clock cycles without any exz errors. b3zs/hdb3 decoder performs exz detection, zero suppression decoding, bpv detection, and bipolar to unipolar conversion. exz detection checks the bipolar data stream for excessive zeros (exz) errors. in b3zs mode, an exz error is declared whenever there is an occurrence of 3 or more zeros. in hdb3 mode, an exz error is declared whenever there is an occurrence of 4 or more zeros. exz errors are accumulated in the exz counter ( line.rexzcr register). zero-suppression decoding converts b3zs or hdb3 encoded bipolar data into an ami bipolar signal. in b3zs mode, the encoded bipolar signal is checked for a b3zs signature. if a b3zs signature is found, it is replaced with three zeros. in hdb3 mode, the encoded bipolar signal is checked for an hdb3 signature. if an hdb3 signature is found, it is replaced with four zeros. the format of both an hdb3 signature and a b3zs signature is programmable. when line.rcr .rzsf = 0, the decoder will search for a zero followed by a bpv in b3zs mode, and in hdb3 mode it will search for two zeros followed by a bpv. if line.rcr .rzsf = 1, the same criteria is applied with an additional requirement that the bpv must be the opposite polarity of the previous bpv. please refer to figure 9-25 and figure 9-26 . zero suppression decoding is also programmable (on or off). note: immediately after a reset or a los condition, the first b3zs/hdb3 signature to be detected will not depend upon the polarity of any bpv contained within the signature.
ds3170 ds3/e3 single-chip transceiver 107 of 233 figure 9-25. b3zs signatures rlclk rpos rneg (rx data) b3zs signature when line.rcr.rzsf = 0 v rlclk rpos rneg (rx data) v b3zs signature when line.rcr.rzsf = 1 v figure 9-26. hdb3 signatures rlclk rpos rneg (rx data) hdb3 signature when line.rcr.rzsf = 0 v rlclk rpos rneg (rx data) hdb3 signature when line.rcr.rzsf = 1 v v bpv detection checks the bipolar signal for bipolar violation (bpv) errors and e3 code violation (cv) errors. a bpv error is declared if two 1?s are detected on rxp or rxn without an intervening 1 on rxn or rxp, and the 1?s are not part of a b3zs/hdb3 signature, or when both rxp and rxn are a one. an e3 coding violation is declared if consecutive bpvs of the same polarity are detected (itu o.161 definition). e3 cvs are accumulated in the bpv counter ( line.rbpvcr register) if e3 cv detection has been enabled (applicable only in hdb3 mode), otherwise, bpvs are accumulated in the bpv counter. if zero code suppression is disabled, the bpv counter will count all bipolar violations. the bpv counter will count pulses on the rlcv pin when the device is configured for unipolar mode. immediately after a reset (or datapath reset) or a los condition, a bpv will not be declared when the first valid one (rpos high and rneg low, or rpos low and rneg high) is received. bipolar to unipolar conversion converts the ami bipolar data into a unipolar signal by or?ing together the rxp and rxn signals.
ds3170 ds3/e3 single-chip transceiver 108 of 233 9.11 bert 9.11.1 general description the bert is a software programmable test pattern generator and monitor capable of meeting most error performance requirements for digital transmission equipment. it will generate and synchronize to pseudo-random patterns with a generation polynomial of the form x n + x y + 1, where n and y can take on values from 1 to 32 and to repetitive patterns of any length up to 32 bits. the transmit direction generates the programmable test pattern, and inserts the test pattern payload into the data stream. the receive direction extracts the test pattern payload from the receive data stream, and monitors the test pattern payload for the programmable test pattern. see figure 9-27 for the location of the bert block within the ds3170 device. figure 9-27. bert block diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 9.11.2 features  programmable prbs pattern ? the pseudo random bit sequence (prbs) polynomial (x n + x y + 1) and seed are programmable (length n = 1 to 32, tap y = 1 to n - 1, and seed = 0 to 2 n - 1).  programmable repetitive pattern ? the repetitive pattern length and pattern are programmable (the length n = 1 to 32 and pattern = 0 to 2 n - 1).  24-bit error count and 32-bit bit count registers  programmable bit error insertion ? errors can be inserted individually, on a pin transition, or at a specific rate. the rate 1/10 n is programmable (n = 1 to 7).  pattern synchronization at a 10 -3 ber ? pattern synchronization will be achieved even in the presence of a random bit error rate (ber) of 10 -3 . 9.11.3 configuration and monitoring set port.cr1 .bena = 1 to enable the bert. the bert must be enabled before the pattern is loaded for the pattern load operation to take affect. the following tables show how to configure the on-board bert to send and receive common patterns.
ds3170 ds3/e3 single-chip transceiver 109 of 233 table 9-31. pseudo-random pattern generation bert.pcr register bert.cr pattern type ptf[4:0] (hex) plf[4:0] (hex) pts qrss bert. pcr bert. spr2 bert. spr1 tpic, rpic 2 9 -1 o.153 (511 type) 04 08 0 0 0x0408 0xffff 0xffff 0 2 11 -1 o.152 and o.153 (2047 type) 08 0a 0 0 0x080a 0xffff 0xffff 0 2 15 -1 o.151 0d 0e 0 0 0x0d0e 0xffff 0xffff 1 2 20 -1 o.153 10 13 0 0 0x1013 0xffff 0xffff 0 2 20 -1 o.151 qrss 02 13 0 1 0x0253 0xffff 0xffff 0 2 23 -1 o.151 11 16 0 0 0x1116 0xffff 0xffff 1 table 9-32. repetitive pattern generation bert.pcr register pattern type ptf[4:0] (hex) plf[4:0] (hex) pts qrss bert. pcr bert. spr2 bert. spr1 all 1s na 00 1 0 0x0020 0xffff 0xffff all 0s na 00 1 0 0x0020 0xffff 0xfffe alternating 1s and 0s na 01 1 0 0x0021 0xffff 0xfffe double alternating and 0s na 03 1 0 0x0023 0xffff 0xfffc 3 in 24 na 17 1 0 0x0037 0xff20 0x0022 1 in 16 na 0f 1 0 0x002f 0xffff 0x0001 1 in 8 na 07 1 0 0x0027 0xffff 0xff01 1 in 4 na 03 1 0 0x0023 0xffff 0xfff1 after configuring these bits, the pattern must be loaded into the bert. this is accomplished via a zero-to-one transition on bert.cr .tnpl and bert.cr .rnpl monitoring the bert requires reading the bert.sr register which contains the bit error count (bec) bit and the out of synchronization (oos) bit. the bec bit will be one when the bit error counter is one or more. the oos will be one when the receive pattern generator is not synchronized to the incoming pattern, which will occur when it receives a minimum 6 bit errors within a 64 bit window. the receive bert bit count register ( bert.rbcr1 ) and the receive bert bit error count register ( bert.rbecr1 ) will be updated upon the reception of a performance monitor update signal (e.g. bert.cr.lpmu). this signal will update the registers with the values of the counter since the last update and will reset the counters. please see section 9.4.5 for more details of the pmu. 9.11.4 receive pattern detection since the receive bert is always enabled, it can be used as an off-line monitor. the receive bert receives only the payload data and synchronizes the receive pattern generator to the incoming pattern. the receive pattern generator is a 32-bit shift register that shifts data from the least significant bit (lsb) or bit 1 to the most significant bit (msb) or bit 32. the input to bit 1 is the feedback. for a prbs pattern (generating polynomial x n + x y + 1), the feedback is an xor of bit n and bit y. for a repetitive pattern (length n), the feedback is bit n. the values for n and y are individually programmable (1 to 32). the output of the receive pattern generator is the feedback. if qrss is enabled, the feedback is an xor of bits 17 and 20, and the output will be forced to one if the next 14 bits are all zeros. qrss is programmable (on or off). for prbs and qrss patterns, the feedback will be forced to one if bits 1 through 31 are all zeros. depending on the type of pattern programmed, pattern detection performs either prbs synchronization or repetitive pattern synchronization. 9.11.4.1 receive prbs synchronization prbs synchronization synchronizes the receive pattern generator to the incoming prbs or qrss pattern. the receive pattern generator is synchronized by loading 32 data stream bits into the receive pattern generator, and
ds3170 ds3/e3 single-chip transceiver 110 of 233 then checking the next 32 data stream bits. synchronization is achieved if all 32 bits match the incoming pattern. if at least six incoming bits in the current 64-bit window do not match the receive pattern generator, automatic pattern resynchronization is initiated. automatic pattern resynchronization can be disabled. refer to figure 9-28 for the prbs synchronization diagram. figure 9-28. prbs synchronization state diagram sync load verify 1 bit error 32 bits loaded 3 2 b i t s w i t h o u t e r r o r s 6 o f 6 4 b i t s w i t h e r r o r s 9.11.4.2 receive repetitive pattern synchronization repetitive pattern synchronization synchronizes the receive pattern generator to the incoming repetitive pattern. the receive pattern generator is synchronized by searching each incoming data stream bit position for the repetitive pattern, and then checking the next 32 data stream bits. synchronization is achieved if all 32 bits match the incoming pattern. if at least six incoming bits in the current 64-bit window do not match the receive prbs pattern generator, automatic pattern resynchronization is initiated. automatic pattern resynchronization can be disabled. refer to figure 9-29 for the repetitive pattern synchronization state diagram.
ds3170 ds3/e3 single-chip transceiver 111 of 233 figure 9-29. repetitive pattern synchronization state diagram sync match verify 1 bit error pattern matches 3 2 b i t s w i t h o u t e r r o r s 6 o f 6 4 b i t s w i t h e r r o r s 9.11.4.3 receive pattern monitoring receive pattern monitoring monitors the incoming data stream for both an oos condition and bit errors and counts the incoming bits. an out of synchronization (oos) condition is declared when the synchronization state machine is not in the ?sync? state. an oos condition is terminated when the synchronization state machine is in the ?sync? state. bit errors are determined by comparing the incoming data stream bit to the receive pattern generator output. if they do not match, a bit error is declared, and the bit error and bit counts are incremented. if they match, only the bit count is incremented. the bit count and bit error count are not incremented when an oos condition exists. 9.11.5 transmit pattern generation pattern generation generates the outgoing test pattern, and passes it onto error insertion. the transmit pattern generator is a 32-bit shift register that shifts data from the least significant bit (lsb) or bit 1 to the most significant bit (msb) or bit 32. the input to bit 1 is the feedback. for a prbs pattern (generating polynomial x n + x y + 1), the feedback is an xor of bit n and bit y. for a repetitive pattern (length n), the feedback is bit n. the values for n and y are individually programmable (1 to 32). the output of the receive pattern generator is the feedback. if qrss is enabled, the feedback is an xor of bits 17 and 20, and the output will be forced to one if the next 14 bits are all zeros. qrss is programmable (on or off). for prbs and qrss patterns, the feedback will be forced to one if bits 1 through 31 are all zeros. when a new pattern is loaded, the pattern generator is loaded with a seed/pattern value before pattern generation starts. the seed/pattern value is programmable (0 ? 2 n - 1). 9.11.5.1 transmit error insertion error insertion inserts errors into the outgoing pattern data stream. errors are inserted one at a time or at a rate of one out of every 10 n bits. the value of n is programmable (1 to 7 or off). single bit error insertion can be initiated from the microprocessor interface, or by the manual error insertion input (tmei). the method of single error insertion is programmable (register or input). if pattern inversion is enabled, the data stream is inverted before the overhead/stuff bits are inserted. pattern inversion is programmable (on or off).
ds3170 ds3/e3 single-chip transceiver 112 of 233 9.12 liu ? line interface unit 9.12.1 general description the line interface units (lius) perform the functions necessary for interfacing at the physical layer to ds3 or e3 lines. the liu has independent receive and transmit paths and a built-in jitter attenuator. see figure 9-30 for the location within the ds3170 device of the liu. figure 9-30. liu functional diagram ds3/e3 transmit liu ieee p1149.1 jtag test access port microprocessor interface hdlc feac llb dlb ds3 / e3 transmit formatter ds3 / e3 receive framer trail trace buffer ds3/e3 receive liu tais tua1 clock rate adapter tx bert rx bert plb alb ua1 gen b3zs/ hdb3 encoder b3zs/ hdb3 decoder 9.12.2 features  performs receive clock/data recovery and transmit waveshaping  jitter attenuators can be placed in either the receive or transmit paths  interfaces to 75  coaxial cable at lengths up to 380 meters (ds3), 440 meters (e3)  use 1:2 transformers on tx and rx  requires minimal external components  local and remote loopbacks 9.12.2.1 transmitter  gapped clock capable up to 52mhz  wide 50  20% transmit clock duty cycle  clock inversion for glueless interfacing  unframed all-ones generator (e3 ais)  line build-out (lbo) control  tri-state line driver outputs support protection switching applications  per-channel power-down control  output driver monitor 9.12.2.2 receiver  agc/equalizer block handles from 0 to 15db of cable loss  loss-of-lock (lol) pll status indication  interfaces directly to a dsx monitor signal (~20db flat loss) using built-in preamp  digital and analog loss-of-signal (los) detectors (ansi t1.231 and itu g.775)  clock inversion for glueless interfacing  per-channel power-down control 9.12.3 detailed description the receiver performs clock and data recovery from an alternate mark inversion (ami) coded signal or a b3zs- or hdb3-coded ami signal and monitors for loss of the incoming signal. the transmitter drives standard pulse-shape
ds3170 ds3/e3 single-chip transceiver 113 of 233 waveforms onto 75  coaxial cable. refer to figure 9-31 for a detailed functional block diagram of the ds3/e3 liu. the jitter attenuator can be mapped into the receiver data path, mapped into the transmitter data path, or be disabled. the ds3/e3 liu conforms to the telecommunications standards listed in table 4-1 . figure 1-1 shows the external components required for proper operation. figure 9-31. ds3/e3 liu block diagram analog local loopback preamp clock & data recovery line driver waveshaping rxpn rxnn txpn txnn power supply squelch jitter attenuator (can be placed in either the receive path or the transmit path) driver monitor vdd vss automatic gain control + adaptive equalizer alos clock rate adapter refclk to b3zs/hdb3 decoder from b3zs/hdb3 encoder from ds3/e3 line to ds3/e3 line 9.12.4 transmitter 9.12.4.1 transmit clock the clock used in the liu transmitter is typically based on either the clad clock or tclki, selected by the cladc bit in port.cr3 . 9.12.4.2 waveshaping, line build-out, line driver the waveshaping block converts the transmit clock, positive data, and negative data signals into a single ami signal with the waveshape required for interfacing to ds3/e3 lines. table 17-7 through table 17-9 and figure 17-11 (ac timing section) show the waveform template specifications and test parameters. because ds3 signals must meet the waveform templates at the cross-connect through any cable length from 0 to 450ft, the waveshaping circuitry includes a selectable lbo feature. for cable lengths of 225ft or greater, the tlbo configuration bit ( port.cr2 .tlbo) should be low. when tlbo is low, output pulses are driven onto the coaxial cable without any preattenuation. for cable lengths less than 225ft, tlbo should be high to enable the lbo circuitry. when tlbo is high, pulses are preattenuated by the lbo circuitry before being driven onto the coaxial cable. the lbo circuitry provides attenuation that mimics the attenuation of 225ft of coaxial cable. the transmitter line driver can be disabled and the txp and txn outputs tri-stated by asserting the lts configuration bit ( port.cr2 .lts). powering down the transmitter through the tpd configuration bit (cpu bus mode) also tri-states the txp and txn outputs.
ds3170 ds3/e3 single-chip transceiver 114 of 233 9.12.4.3 interfacing to the line the transmitter interfaces to the outgoing ds3/e3 coaxial cable (75  ) through a 2:1 step-down transformer connected to the txp and txn pins. figure 1-1 shows the arrangement of the transformer and other recommended interface components. table 9-33 specifies the required characteristics of the transformer. 9.12.4.4 transmit driver monitor if the transmit driver monitor detects a faulty transmitter, it sets the port.sr .tdm status bit. when the transmitter is tri-stated, the transmit driver monitor is also disabled. the transmitter is declared to be faulty when the transmitter outputs see a load of less than ~25  . 9.12.4.5 transmitter power-down to minimize power consumption when the transmitter is not being used, assert the port.cr1 .pd configuration bit. when the transmitter is powered down, the txp and txn pins are put in a high-impedance state and the transmit amplifiers are powered down. 9.12.4.6 transmitter jitter generation (intrinsic) the transmitter meets the jitter generation requirements of all applicable standards, with or without the jitter attenuator enabled. 9.12.4.7 transmitter jitter transfer without the jitter attenuator enabled in the transmit side, the transmitter passes jitter through unchanged. with the jitter attenuator enabled in the transmit side, the transmitter meets the jitter transfer requirements of all applicable telecommunication standards. see table 4-1 . 9.12.5 receiver 9.12.5.1 interfacing to the line the receiver can be transformer-coupled or capacitor-coupled to the line. typically, the receiver interfaces to the incoming coaxial cable (75  ) through a 1:2 step-up transformer. figure 1-1 shows the arrangement of the transformer and other recommended interface components. table 9-33 specifies the required characteristics of the transformer. figure 9-31 shows a general overview of the liu block. the receiver expects the incoming signal to be in b3zs- or hdb3-coded ami format. table 9-33. transformer characteristics parameter value turns ratio 1:2ct  2% bandwidth 75  0.250mhz to 500mhz (typ) primary inductance 19  h (min) leakage inductance 0.12  h (max) interwinding capacitance 10pf (max) isolation voltage 1500v rms (min)
ds3170 ds3/e3 single-chip transceiver 115 of 233 table 9-34. recommended transformers manufacturer part temp range pin-package/ schematic ocl primary (  h) (min) l l (  h) (max) bandwidth 75  (mhz) pulse engineering pe-65968 0c to +70c 6 smt ls-1/c 19 0.06 0.250 to 500 pulse engineering pe-65969 0c to +70c 6 thru-hole lc-1/c 19 0.06 0.250 to 500 halo electronics tg07- 0206ns 0c to +70c 6 smt smd/b 19 0.06 0.250 to 500 halo electronics td07- 0206ne 0c to +70c 6 dip dip/b 19 0.06 0.250 to 500 note: table subject to change. industrial temperature range and multiport transformers are also available. contact the manufacturers for details at www.pulseeng.com and www.haloelectronics.com . 9.12.5.2 optional preamp the receiver can be used in monitoring applications, which typically have series resistors with a resistive loss of approximately 20db. when the port.cr2 .rmon bit is high, the receiver compensates for this resistive loss by applying flat gain to the incoming signal before sending the signal to the agc/equalizer block. 9.12.5.3 automatic gain control (agc) and adaptive equalizer. the agc circuitry applies flat (frequency independent) gain to the incoming signal to compensate for flat losses in the transmission channel and variations in transmission power. since the incoming signal also experiences frequency-dependent losses as it passes through the coaxial cable, the adaptive equalizer circuitry applies frequency-dependent gain to offset line losses and restore the signal. the agc/equalizer circuitry automatically adapts to coaxial cable losses from 0 to 15db, which translates into 0 to 380 meters (ds3) or 0 to 440 meters (e3) of coaxial cable (at&t 734a or equivalent). the agc and the equalizer work simultaneously but independently to supply a signal of nominal amplitude and pulse shape to the clock and data recovery block. the agc/equalizer block automatically handles direct (0 meters) monitoring of the transmitter output signal. 9.12.5.4 clock and data recovery (cdr) the cdr block takes the amplified, equalized signal from the agc/equalizer block and produces a separate clock, positive data, and negative data signals. the cdr requires a master clock. the master clock is derived from refclk. the receive clock is locked using a clock recovery pll. the status of the pll lock is indicated in the rlol ( port.sr ) status bit. the receive loss-of-lock status bit (rlol) is set when the difference between the recovered clock frequency and the master clock frequency is greater than 7900ppm and cleared when the difference is less than 7700ppm. a change of state of the port.sr .rlol status bit can cause an interrupt on the int pin if enabled to do so by the port.srie .rlolie interrupt-enable bit. note that if the master clock is not present, or the master clock is high and tclk is not present, rlol is not set. 9.12.5.5 loss-of-signal (los) detector the receiver contains analog and digital los detectors. the analog los detector resides in the agc/equalizer block. if the incoming signal level is less than a signal level approximately 24db below nominal, analog los (alos) is declared. the alos signal cannot be directly examined, but when alos occurs the agc/equalizer mutes the recovered data, forcing all zeros out of the data recovery circuitry and causing digital los (dlos). dlos is determined by the line decoder block (see section 9.10.4 ) and indicated by the los status bit ( line.rsr. los). alos clears when the incoming signal level is greater than or equal to a signal level approximately 18db below nominal. for e3 los assertion:
ds3170 ds3/e3 single-chip transceiver 116 of 233 the alos detector in the agc/equalizer block detects that the incoming signal is less than or equal to a signal level approximately 24db below nominal, and mutes the data coming out of the clock and data recovery block. (24db below nominal in the ?tolerance range? of g.775, where los may or may not be declared.) for e3 los clear: the alos detector in the agc/equalizer block detects that the incoming signal is greater than or equal to a signal level approximately 18db below nominal, and enables data to come out of the cdr block. (18db is in the ?tolerance range? of g.775, where los may or may not be declared.) 9.12.5.6 receiver power-down to minimize power consumption when the receiver is not being used, write a one to the port.cr1 .pd bit. when the receiver is powered down, the rclko pin is tri-stated. in addition, the rxp and rxn pins become high impedance. 9.12.5.7 receiver jitter tolerance. the receiver exceeds the input jitter tolerance requirements of all applicable telecommunication standards in table 4-1 . see figure 9-32 . figure 9-32. receiver jitter tolerance 10 100 1k 10k 100k 1m 60k 22.3k 2.3k 669 0.1 1.0 10 300k 800k 300 30 0.1 0.15 0.3 10 5 1.5 e3 g.823 ds3 gr-499 cat ii ds3 gr-499 cat i ds3170 jitter tolerance 15 sts-1 gr253 frequency (hz) jitter tolerance (ui p-p )
ds3170 ds3/e3 single-chip transceiver 117 of 233 10 overall register map the register addresses of the global, test and the port are concatenated to cover the address range of 000 to 7ff. the address map requires 9 bits of address, adr[8:0]. the register banks that are not marked with an ?x? are not writeable and read back all zeroes. bits that are underlined are read-only; all other bits are read-write. unused bits and registers marked with ??? are ignored when written to, and return zero when read. configuration registers can be written to and read from during a data path reset ( drst low, and rst high). however, all changes to these registers will be ignored during the data path reset. as a result, all initiating action requiring a ?0 to 1? transition must be re-initiated after the data path reset is released. all counters saturate at their maximum count. a counter register is updated by asserting (low to high transition) the performance monitoring update signal (pmu). during the counter register update process, the performance monitoring status signal (pms) will be deasserted. the counter register update process consists of loading the counter register with the current count, resetting the counter, forcing the zero count status indication low for one clock period, and then asserting pms. no events shall be missed during an update procedure. a latched bit is set when the associated event occurs, and remains set until it is cleared. once cleared, a latched bit will not be set again until the associated event reoccurs (goes away and comes back). a latched on change bit is a latched bit that is set when the event occurs, and when it goes away. a latched status bit can be cleared using clear on read or clear on write techniques, selectable by the gl.cr1 .lsbcre bit. when clear on write is selected, the latched bits in a latched status register will be cleared after the register is read from. if the device is configured for 16-bit mode, all 16 latched status bits will be cleared. if the device is configured for 8-bit mode, only the 8 bits being accessed will be cleared. when clear on write is selected, the latched bits in a latched status register will be cleared when a logic 1 is written to that bit position. for example, writing a ffffh to a 16-bit latched status register will clear any latched status bit, whereas writing a 0001h will only clear latched bit 0 of the latched status register. reserved bits and registers are implemented in a different mode. reserved configuration bits and registers can be written and read, however they will not affect the operation of the current mode. reserved status bits will be zero. reserved latched status bits cannot be set, however, they may remain set or get set during a mode change. reserved interrupt enable bits can be written and read, and can cause an interrupt if the associated latched status bit is set. reserved counter registers and the associated counter will retain the values held before a mode change, however, the associated counter cannot be incremented. a performance monitor update will operate normally. if the data path reset is set during or after a mode change, the latched status bits and counter registers (with the associated counters) will be automatically cleared. if the data path reset is not used, then the latched status bits must be cleared via the register interface in the normal manner. and, the counter registers must be cleared by performing two performance monitor updates. the first to clear the associated counter, and load the current count into the counter register, and the second to clear the counter register. the term ?global? is used to make the register names compatible with the mult-port versions (ds3174, ds3173, ds3172, ds3171) of this device. note: the rdy signal will not go active if the user attempts to read or write unused registers not assigned to any design blocks. the rdy signal will go active if the user writes or reads reserved registers or unused registers within design blocks. table 10-1. register address map address offset description 000 - 01f global registers 020 ? 03f unused 040 - 05f port control registers 060 ? 07f bert 080 ? 08b unused
ds3170 ds3/e3 single-chip transceiver 118 of 233 address offset description 08c ? 08f b3zs/hdb3 transmit line encoder 090 ? 09f b3zs/hdb3 receive line decoder 0a0 ? 0af hdlc transmit 0b0 ? 0bf hdlc receive 0c0 ? 0cf feac transmit 0d0 ? 0df feac receive 0e0 ? 0e7 unused 0e8 ? 0ef trail trace transmit 0f0 ? 0ff trail trace receive 100 ? 117 unused 118 ? 11f ds3/e3 framer transmit 120 ? 13f ds3/e3 framer receive 140 ? 17f unused 180 ? 19f test registers 1a0 ? 1ff unused
ds3170 ds3/e3 single-chip transceiver 119 of 233 11 register maps and descriptions 11.1 registers bit maps note: in 8-bit mode, register bits[15:8] correspond to the upper byte, and register bits[7:0] correspond to the lower byte. for example, address 001h is the upper byte (bits [15:8]) and address 000h is the lower byte (bits [7:0]) for register gl.idr in 8-bit mode. all registers listed, including those designated unused and reserved, will cause the rdy signal to go low when written to or read from. the ??? designation indicates that the bit is not assigned. 11.1.1 global register bit map table 11-1. global register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 000 id7 id6 id5 id4 id3 id2 id1 id0 000 001 gl.idr r id15 id14 id13 id12 id11 id10 id9 id8 002 tmei meims gpm1 gpm0 pmu lsbcre rstdp rst 002 003 gl.cr1 rw -- intm -- -- -- -- -- -- 004 -- -- -- -- clad2 clad1 clad0 -- 004 005 gl.cr2 rw -- -- -- -- g8krs1 g8krs0 g8k0s g8kis 006- -- -- -- -- -- -- -- -- 006- 008 009 unused -- -- -- -- -- -- -- -- 00a gpio4s1 gpio4s0 gpio3s1 gpio3s0 gpio2s1 gpio2s0 gpio1s1 gpio1s0 00a 00b gl.giocr rw gpio8s1 gpio8s0 gpio7s1 gpio7s0 gpio6s1 gpio6s0 gpio5s1 gpio5s0 00c -- -- -- -- -- -- -- -- 00c 00d unused -- -- -- -- -- -- -- -- 010 pisr -- -- -- gsr 010 011 gl.isr r -- -- -- -- -- -- -- -- 012 pisrie -- -- -- gsrie 012 013 gl.isrie rw 014 -- -- -- -- -- -- clol gpms 014 015 gl.sr r -- -- -- -- -- -- -- -- 016 -- -- -- 8krefl cladl onesl cloll gpmsl 016 017 gl.srl rl -- -- -- -- -- -- -- -- 018 -- -- -- -- -- onesie clolie gpmsie 018 019 gl.srie r -- -- -- -- -- -- -- -- 01a -- -- -- -- -- -- -- -- 01a 01b unused -- -- -- -- -- -- -- -- 01c gpio8 gpio7 gpio6 gpio5 gpio4 gpio3 gpio2 gpio1 01c 01d gl.giorr r -- -- -- -- -- -- -- -- 01e -- -- -- -- -- -- -- -- 01e 01f unused -- -- -- -- -- -- -- -- table 11-2. port register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8
ds3170 ds3/e3 single-chip transceiver 120 of 233 address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 040 tmei meim -- pmum pmu pd rstdp rst 040 041 port.cr1 rw res pais2 pais1 pais0 lais1 lais0 bena res 042 res res fm2 fm1 fm0 res res res 042 043 port.cr2 rw tlen tts rmon tlbo res lm2 lm1 lm0 044 p8krs1 p8krs0 p8kref loopt cladc rfts tfts tlts 044 045 port.cr3 rw -- -- rclks rsofos res tclks tsofos res 046 gpiob3 gpiob2 gpiob1 gpiob0 gpioa3 gpioa2 gpioa1 gpioa0 046 047 port.cr4 rw -- -- -- -- res lbm2 lbm1 lbm0 048 -- -- -- -- -- -- -- -- 048 049 unused -- -- -- -- -- -- -- -- 04a tohi tohcki tsofii tnegi tdati tlcki tckoi tckii 04a 04b port.inv1 rw res res -- tsofoi res tseri tohsi tohei 04c rohi rohcki -- rnegi rposi rlcki rclkoi -- 04c 04d port.inv2 rw -- res res rsofoi -- rseri rohsi -- 04e -- -- -- -- -- -- -- -- 04e 04f unused -- -- -- -- -- -- -- -- 050 ttsr fsr hsr bsr res res res fmsr 050 051 port.isr r -- -- -- -- -- -- psr lcsr 052 -- -- -- -- -- tdm rlol pms 052 053 port.sr r -- -- -- -- -- -- -- -- 054 rlclkl tclkil -- -- -- tdml rloll pmsl 054 055 port.srl rl -- -- -- -- -- -- -- -- 056 -- -- -- -- -- tdmie rlolie pmsie 056 057 port.srie rw -- -- -- -- -- -- -- -- 058- -- -- -- -- -- -- -- -- 058- 05e 05f unused -- -- -- -- -- -- -- -- table 11-3. bert register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 060 pmum lpmu rnpl rpic mpr aprd tnpl tpic 060 061 bert.cr rw -- -- -- -- -- -- -- -- 062 -- qrss pts plf4 plf3 plf2 plf1 plf0 062 063 bert.pcr rw -- -- -- ptf4 ptf3 ptf2 ptf1 ptf0 064 bsp7 bsp6 bsp5 bsp4 bsp3 bsp2 bsp1 bsp0 064 065 bert.spr1 rw bsp15 bsp14 bsp13 bsp12 bsp11 bsp10 bsp9 bsp8 066 bsp23 bsp22 bsp21 bsp20 bsp19 bsp18 bsp17 bsp16 066 067 bert.spr2 rw bsp31 bsp30 bsp29 bsp28 bsp27 bsp26 bsp25 bsp24 068 -- -- teir2 teir1 teir0 bei tsei meims 068 069 bert.teicr rw -- -- -- -- -- -- -- -- 06a -- -- -- -- -- -- -- -- 06a 06b unused -- -- -- -- -- -- -- -- 06c -- -- -- -- pms -- bec oos 06c 06d bert.sr r -- -- -- -- -- -- -- -- 06e -- -- -- -- pmsl bel becl oosl 06e 06f bert.srl rl -- -- -- -- -- -- -- -- 070 -- -- -- -- pmsie beie becie oosie 070 071 bert.srie rw -- -- -- -- -- -- -- -- 072 -- -- -- -- -- -- -- -- 072 073 unused -- -- -- -- -- -- -- --
ds3170 ds3/e3 single-chip transceiver 121 of 233 address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 074 bec7 bec6 bec5 bec4 bec3 bec2 bec1 bec0 074 075 bert.rbecr1 r bec15 bec14 bec13 bec12 bec11 bec10 bec9 bec8 076 bec23 bec22 bec21 bec20 bec19 bec18 bec17 bec16 076 077 bert.rbecr2 r -- -- -- -- -- -- -- -- 078 bc7 bc6 bc5 bc4 bc3 bc2 bc1 bc0 078 079 bert.rbcr1 r bc15 bc14 bc13 bc12 bc11 bc10 bc9 bc8 07a bc23 bc22 bc21 bc20 bc19 bc18 bc17 bc16 07a 07b bert.rbcr2 r bc31 bc30 bc29 bc28 bc27 bc26 bc25 bc24 07c -- -- -- -- -- -- -- -- 07c- 07e 07f unused -- -- -- -- -- -- -- -- table 11-4. line register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 08c -- -- -- tzsd exzi bpvi tsei meims 08c 08d line.tcr rw -- -- -- -- -- -- -- -- 08e -- -- -- -- -- -- -- -- 08e 08f unused -- -- -- -- -- -- -- -- 090 -- -- -- -- e3cve rezsf rdzsf rzsd 090 091 line.rcr rw -- -- -- -- -- -- -- -- 092 -- -- -- -- -- -- -- -- 092 093 unused -- -- -- -- -- -- -- -- 094 -- -- -- -- exzc -- bpvc los 094 095 line.rsr r -- -- -- -- -- -- -- -- 096 -- -- zscdl exzl exzcl bpvl bpvcl losl 096 097 line.rsrl rl -- -- -- -- -- -- -- -- 098 -- -- zscdie exzie exzcie bpvie bpvcie losie 098 099 line.rsrie rw -- -- -- -- -- -- -- -- 09a -- -- -- -- -- -- -- -- 09a 09b unused -- -- -- -- -- -- -- -- 09c bpv7 bpv6 bpv5 bpv4 bpv3 bpv2 bpv1 bpv0 09c 09d line.rbpvcr r bpv15 bpv14 bpv13 bpv12 bpv11 bpv10 bpv9 bpv8 09e exz7 exz6 exz5 exz4 exz3 exz2 exz1 exz0 09e 09f line.rexzcr r exz15 exz14 exz13 exz12 exz11 exz10 exz9 exz8 11.1.2 hdlc register bit map table 11-5. hdlc register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 0a0 -- tpsd tfei tifv tbre tdie tfpd tfrst 0a0 0a1 hdlc.tcr rw -- -- -- tdal4 tdal3 tdal2 tdal1 tdal0 0a2 -- -- -- -- -- -- -- tdpe 0a2 0a3 hdlc.tfdr rw tfd7 tfd6 tfd5 tfd4 tfd3 tfd2 tfd1 tfd0 0a4 -- -- -- -- -- tff tfe thda 0a4 0a5 hdlc.tsr r -- -- tffl5 tffl4 tffl3 tffl2 tffl1 tffl0 0a6 -- -- tfol tful tpel -- tfel thdal 0a6 0a7 hdlc.tsrl rl -- -- -- -- -- -- -- -- 0a8 -- -- tfoie tfuie tpeie -- tfeie thdaie 0a8 0a9 hdlc.tsrie rw -- -- -- -- -- -- -- --
ds3170 ds3/e3 single-chip transceiver 122 of 233 address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 0aa -- -- -- -- -- -- -- -- 0aa- 0ae 0af unused -- -- -- -- -- -- -- -- 0b0 -- -- -- -- rbre rdie rfpd rfrst 0b0 0b1 hdlc.rcr rw -- -- -- rdal4 rdal3 rdal2 rdal1 rdal0 0b2 -- -- -- -- -- -- -- -- 0b2 0b3 unused -- -- -- -- -- -- -- -- 0b4 -- -- -- -- -- rff rfe rhda 0b4 0b5 hdlc.rsr r -- -- -- -- -- -- -- -- 0b6 rfol -- -- rpel rpsl rffl -- rhdal 0b6 0b7 hdlc.rsrl rl -- -- -- -- -- -- -- -- 0b8 rfoie -- -- rpeie rpsie rffie -- rhdaie 0b8 0b9 hdlc.rsrie rw -- -- -- -- -- -- -- -- 0ba -- -- -- -- -- -- -- -- 0ba 0bb unused -- -- -- -- -- -- -- -- 0bc -- -- -- -- rps2 rps1 rps0 rfdv 0bc 0bd hdlc.rfdr r rfd7 rfd6 rfd5 rfd4 rfd3 rfd2 rfd1 rfd0 0be -- -- -- -- -- -- -- -- 0be 0bf unused -- -- -- -- -- -- -- -- table 11-6. feac register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 0c0 -- -- -- -- -- tfcl tfs1 tfs0 0c0 0c1 feac.tcr rw -- -- -- -- -- -- -- -- 0c2 -- -- tfca5 tfca4 tfca3 tfca2 tfca1 tfca0 0c2 0c3 feac.tfdr rw -- -- tfcb5 tfcb4 tfcb3 tfcb2 tfcb1 tfcb0 0c4 -- -- -- -- -- -- -- tfi 0c4 0c5 feac.tsr r -- -- -- -- -- -- -- -- 0c6 -- -- -- -- -- -- -- tfil 0c6 0c7 feac.tsrl rl -- -- -- -- -- -- -- -- 0c8 -- -- -- -- -- -- -- tfiie 0c8 0c9 feac.tsrie rw -- -- -- -- -- -- -- -- 0ca -- -- -- -- -- -- -- -- 0ca- 0ce 0cf unused -- -- -- -- -- -- -- -- 0d0 -- -- -- -- -- -- -- rfr 0d0 0d1 feac.rcr rw -- -- -- -- -- -- -- -- 0d2 -- -- -- -- -- -- -- -- 0d2 0d3 unused -- -- -- -- -- -- -- -- 0d4 -- -- -- -- rffe -- rfcd rfi 0d4 0d5 feac.rsr r -- -- -- -- -- -- -- -- 0d6 -- -- -- -- -- rffol rfcdl rfil 0d6 0d7 feac.rsrl rl -- -- -- -- -- -- -- -- 0d8 -- -- -- -- -- rffoie rfcdie rfiie 0d8 0d9 feac.rsrie rw -- -- -- -- -- -- -- -- 0da -- -- -- -- -- -- -- -- 0da 0db unused -- -- -- -- -- -- -- -- 0dc rffi -- rff5 rff4 rff3 rff2 rff1 rff0 0dc 0dd feac.rfdr r -- -- -- -- -- -- -- -- 0de -- -- -- -- -- -- -- -- 0de 0df unused -- -- -- -- -- -- -- --
ds3170 ds3/e3 single-chip transceiver 123 of 233 table 11-7. trail trace register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 0e8 -- -- -- reserved tmad tidle tdie tbre 0e8 0e9 tt.tcr rw -- -- -- -- -- -- -- -- 0ea -- -- reserved reserved ttia3 ttia2 ttia1 ttia0 0ea 0eb tt.ttiar r -- -- -- -- -- -- -- -- 0ec ttd7 ttd6 ttd5 ttd4 ttd3 ttd2 ttd1 ttd0 0ec 0ed tt.tir r -- -- -- -- -- -- -- -- 0ee -- -- -- -- -- -- -- -- 0ee 0ef unused -- -- -- -- -- -- -- -- 0f0 -- -- reserved reserved rmad retcd rdie rbre 0f0 0f1 tt.rcr rw -- -- -- -- -- -- -- -- 0f2 -- -- reserved reserved rtia3 rtia2 rtia1 rtia0 0f2 0f3 tt.rtiar r -- -- reserved reserved etia3 etia2 etia1 etia0 0f4 -- -- -- -- -- rtim rtiu ridl 0f4 0f5 tt.rsr r -- -- -- -- -- -- -- -- 0f6 -- -- -- -- rticl rtiml rtiul ridll 0f6 0f7 tt.rsrl rl -- -- -- -- -- -- -- -- 0f8 -- -- -- -- rticie rtimie rtiuie ridlie 0f8 0f9 tt.rsrie rw -- -- -- -- -- -- -- -- 0fa -- -- -- -- -- -- -- -- 0fa 0fb unused -- -- -- -- -- -- -- -- 0fc rtd7 rtd6 rtd5 rtd4 rtd3 rtd2 rtd1 rtd0 0fc 0fd tt.rir r -- -- -- -- -- -- -- -- 0fe etd7 etd6 etd5 etd4 etd3 etd2 etd1 etd0 0fe 0ff tt.eir r -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 100- 116 100- 1117 reserved -- -- -- -- -- -- -- -- 11.1.3 t3 register bit map table 11-8. t3 register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 118 -- -- tfebe afebed trdi ardid tfgd tais 118 119 t3.tcr rw -- -- -- pbge tidle cbge -- -- 11a reserved cpeie pei feic1 feic0 fei tsei meims 11a 11b t3.teir rw -- -- -- -- ccpeie cpei cfbeie fbei 11c -- -- -- -- -- -- -- -- 11c- 11e 11f reserved -- -- -- -- -- -- -- -- 120 raile raild raiod raiad romd lip1 lip0 frsync 120 121 t3.rcr rw reserved covhd maod mdaisi aaisd ecc fecc1 fecc0 122 -- -- -- -- -- -- -- -- 122 123 reserved -- -- -- -- -- -- -- -- 124 oomf sef -- lof rai ais oof los 124 125 t3.rsr1 r reserved reserved -- reserved t3fm aic idle rua1 126 -- -- -- -- cpec fbec pec fec 126 127 t3.rsr2 r -- -- -- -- -- -- -- -- 128 oomfl sefl cofal lofl rail aisl oofl losl 128 129 t3.rsrl1 rl reserved reserved reserved reserved t3fml aicl idlel rua1l
ds3170 ds3/e3 single-chip transceiver 124 of 233 address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 12a -- -- -- -- cpecl fbecl pecl fecl 12a 12b t3.rsrl2 rl -- -- -- -- cpel fbel pel fel 12c oomfie sefie cofaie lofie raiie aisie oofie losie 12c 12d t3.rsrie1 rw reserved reserved reserved reserv ed t3fmie aicie idleie rua1ie 12e -- -- -- -- cpecie fbecie pecie fecie 12e 12f t3.rsrie2 rw -- -- -- -- cpeie fbeie peie feie 130 -- -- -- -- -- -- -- -- 130- 132 133 reserved -- -- -- -- -- -- -- -- 134 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 134 135 t3.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 136 pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 136 137 t3.rpecr r pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 138 fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 138 139 t3.rfbecr r fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 13a cpe7 cpe6 cpe5 cpe4 cpe3 cpe2 cpe1 cpe0 13a 13b t3.rcpecr r cpe15 cpe14 cpe13 cpe12 cpe11 cpe10 cpe9 cpe8 13c -- -- -- -- -- -- -- -- 13c- 13e 13f unused -- -- -- -- -- -- -- -- 11.1.4 e3 g.751 register bit map table 11-9. e3 g.751 register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 118 -- -- reserved reserved tabc1 tabc0 tfgd tais 118 119 e3g751.tcr rw reserved -- -- reserved reserved reserved tnbc1 tnbc0 11a reserved reserved reserved feic1 feic0 fei tsei meims 11a 11b e3g751.teir rw -- -- -- -- reserved reserved reserved reserved 11c -- -- -- -- -- -- -- -- 11c- 11e 11f reserved -- -- -- -- -- -- -- -- 120 raile raild raiod raiad romd lip1 lip0 frsync 120 121 e3g751.rcr rw reserved reserved dls mdaisi aaisd ecc fecc1 fecc0 122 -- -- -- -- -- -- -- -- 122 123 reserved -- -- -- -- -- -- -- -- 124 rab rnb -- lof rai ais oof los 124 125 e3g751.rsr1 r reserved reserved -- reserved reserved reserved reserved rua1 126 -- -- -- -- reserved reserved reserved fec 126 127 e3g751.rsr2 r -- -- -- -- -- -- -- -- 128 acl ncl cofal lofl rail aisl oofl losl 128 129 e3g751.rsrl1 rl reserved reserved reserved reserved reserved reserved reserved rua1l 12a -- -- -- -- reserved reserved reserved fecl 12a 12b e3g751.rsrl2 rl -- -- -- -- reserved reserved reserved fel 12c acie ncie cofaie lofie raiie aisie oofie losie 12c 12d e3g751.rsrie1 rw reserved reserved reserved reserved reserved reserved reserved rua1ie 12e -- -- -- -- reserved reserved reserved fecie 12e 12f e3g751.rsrie2 rw -- -- -- -- reserved reserved reserved feie 130 -- -- -- -- -- -- -- -- 130- 132 133 reserved -- -- -- -- -- -- -- -- 134 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 134 135 e3g751.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8
ds3170 ds3/e3 single-chip transceiver 125 of 233 address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 136- -- -- -- -- -- -- -- -- 136- 13a 13b reserved -- -- -- -- -- -- -- -- 13c- -- -- -- -- -- -- -- -- 13c- 13e 13f unused -- -- -- -- -- -- -- -- 11.1.5 e3 g.832 register bit map table 11-10. e3 g.832 register bit map address register type bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 16-bit 8-bit bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 118 -- -- tfebe afebed trdi ardid tfgd tais 118 119 e3g832.tcr rw reserved -- -- reserved reserved tgcc tnrc1 tnrc0 11a pbee cpeie pei feic1 feic0 fei tsei meims 11a 11b e3g832.teir rw -- -- -- -- reserved reserved cfbeie fbei 11c tpt2 tpt1 tpt0 ttigd tti3 tti2 tti1 tti0 11c 11d e3g832.tmabr rw -- -- -- -- -- -- -- -- 11e tnr7 tnr6 tnr5 tnr4 tnr3 tnr2 tnr1 tnr0 11e 11f e3g832.tngbr rw tgc7 tgc6 tgc5 tgc4 tgc3 tgc2 tgc1 tgc0 120 raile raild raiod raiad romd lip1 lip0 frsync 120 121 e3g832.rcr rw reserved pec dls mdaisi aaisd ecc fecc1 fecc0 122 -- -- -- -- ept2 ept1 ept0 tied 122 123 e3g832.rmacr rw -- -- -- -- -- -- -- -- 124 reserved reserved -- lof rai ais oof los 124 125 e3g832.rsr1 r reserved -- -- rptu rptm reserved reserved rua1 126 -- -- -- -- reserved fbec pec fec 126 127 e3g832.rsr2 r -- -- -- -- -- -- -- -- 128 gcl nrl cofal lofl rail aisl oofl losl 128 129 e3g832.rsrl1 rl reserved -- til rptul rptml rptl reserved rua1l 12a -- -- -- -- reserved fbecl pecl fecl 12a 12b e3g832.rsrl2 rl -- -- -- -- reserved fbel pel fel 12c gcie nrie cofaie lofie raiie aisie oofie losie 12c 12d e3g832.rsrie1 rw reserved -- tiie rptuie rptmie rptie reserved rua1ie 12e -- -- -- -- reserved fbecie pecie fecie 12e 12f e3g832.rsrie2 rw -- -- -- -- reserved fbeie peie feie 130 -- rpt2 rpt1 rpt0 ti3 ti2 ti1 ti0 130 131 e3g832.rmabr r -- -- -- -- -- -- -- -- 132 rnr7 rnr6 rnr5 rnr4 rnr3 rnr2 rnr1 rnr0 132 133 e3g832.rngbr r rgc7 rgc6 rgc5 rgc4 rgc3 rgc2 rgc1 rgc0 134 fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 134 135 e3g832.rfecr r fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 136 pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 136 137 e3g832.rpecr r pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 138 fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 138 139 e3g832.rfber r fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 13a -- -- -- -- -- -- -- -- 13a 13b reserved -- -- -- -- -- -- -- -- 13c- -- -- -- -- -- -- -- -- 13c- 13e 13f unused -- -- -- -- -- -- -- -- bits that are underlined are read-only; all other bits are read-write.
ds3170 ds3/e3 single-chip transceiver 126 of 233 11.2 global registers table 11-11. global register map address register register description 000h gl.idr global id register 002h gl.cr1 global control register 1 004h gl.cr2 global control register 2 006h -- unused 008h -- unused 00ah gl.giocr global general purpose io control register 00ch -- unused 00eh -- unused 010h gl.isr global interrupt status register 012h gl.isrie global interrupt enable register 014h gl.sr global status register 016h gl.srl global status register latched 018h gl.srie global status register interrupt enable 01ah -- unused 01ch gl.giorr global general purpose io read register 01eh -- unused 11.2.1 register bit descriptions register name: gl.idr register description: global id register register address: 000h bit # 15 14 13 12 11 10 9 8 name id15 id14 id13 id12 id11 id10 id9 id8 bit # 7 6 5 4 3 2 1 0 name id7 id6 id5 id4 id3 id2 id1 id0 bits 15 to 12: device rev id bits 15 to 12 (id15 to id12). these bits of the device id register has same information as the four bits of jtag rev id portion of the jtag id register. jtag id[31:28]. bits 11 to 0: device code id bits 11 to 0 (id11 to id0). these bits of the device code id register has same information as the lower 12 bits of jtag code id portion of the jtag id register. jtag id[23:12].
ds3170 ds3/e3 single-chip transceiver 127 of 233 register name: gl.cr1 register description: global control register 1 register address: 002h bit # 15 14 13 12 11 10 9 8 name -- intm -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tmei meims gpm1 gpm0 pmu lsbcre rstdp rst default 0 0 0 0 0 0 1 0 bit 14: int pin mode (intm) this bit determines the inactive mode of the int pin. the int pin always drives low when active. 0 = pin is high impedance when not active 1 = pin drives high when not active bit 7: transmit manual error insert (tmei) this bit is used insert an error if the port is configured for global error insertion. an error(s) is inserted at the next opportunity when this bit transitions from low to high. the gl.cr1 .meims bit must be clear for this bit to operate. bit 6: transmit manual error insert select (meims) this bit is used to select the source of the global manual error insertion signal 0 = global error insertion using tmei bit 1 = global error insertion using the gpio6 pin bits 5 and 4: global performance monitor update mode (gpm[1:0]) these bits select the global performance monitor register update mode. 00 = global pm update using the pmu bit 01 = global pm update using the gpio8 pin 1x = one second pm update using the internal one second counter bit 3: global performance monitor update register (pmu) this bit is used to update all of the performance monitor registers configured to use this bit. when this bit is toggled from low to high the performance registers configured to use this signal will be updated with the latest count value from the counters, and the counters will be reset. the bit should remain high until the performance register update status bit ( gl.sr .pms) goes high, then it should be brought back low which clears the pms status bit. bit 2: latched status bit clear on read enable (lsbcre). this signal determines when latched status register bits are cleared. 0 = latched status register bits are cleared on a write 1 = latched status register bits are cleared on a read bit 1: reset data path (rstdp). when this bit is set, it will force all of the internal data path registers to their default state. this bit must be set high for a minimum of 100ns. see the reset and power-down section 9.3 . note: the default state is a 1 (after a general reset, this bit will be set to one). 0 = normal operation 1 = force all data path registers to their default values bit 0: reset (rst). when this bit is set, all of the internal data path and status and control registers (except this rst bit), will be reset to their default state. this bit must be set high for a minimum of 100ns. see the reset and power-down section 9.3 . 0 = normal operation 1 = force all internal registers to their default values
ds3170 ds3/e3 single-chip transceiver 128 of 233 register name: gl.cr2 register description: global control register 2 register address: 004h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- g8krs1 g8krs0 g8k0s g8kis default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- clad2 clad1 clad0 -- default 0 0 0 0 0 0 0 0 bits 11 to 10: global 8khz reference source [1:0] (g8krs[1:0]). these bits determine the source for the internally generated 8 khz reference as well as the internal one second reference, which is derived from the global 8 khz reference. the source is selected from the clad clock or from the port 8kref clock source. see table 9-12. global 8 khz reference source table these bits are ignored when the g8kis bit = 1. table 9-12. global 8 khz reference source table gl.cr2. g8kis gl.cr2. g8krs[1:0] source 0 00 none, the 8khz divider is disabled. 0 01 derived from clad output clock 0 10 8kref source selected by p8krs[1:0] 0 11 undefined 1 xx gpio4 bit 9: global 8khz reference output select (g8kos). this bit determines whether gpio2 pin is used for the global 8krefo output signal, or is used as specified by gl.giocr .gpio2s[1:0]. 0 = gpio2 pin mode selected by gl.giocr. gpio2s[1:0] 1 = gpio2 is the global 8krefo output signal selected by gl.cr2 .8krs[2:0] bit 8: global 8khz reference input select (g8kis). this bit determines whether gpio4 pin is used for the global 8krefi input signal, or is used as specified by gl.giocr .gpio4s[1:0]. g8krefi signal will be low if not selected. global 8kref pin signal will be low if not selected. 0 = gpio4 pin mode selected by gl.giocr. gpio4s[1:0] 1 = gpio4 is the global 8krefi input signal for one second timer and port to use bits 3 to 1: clad io mode [2:0] (clad[2:0]). these bits control the clad. see table 9-11 . table 9-11. clad clock source settings clad[2:0] refclk (input) 000 44.736 mhz 001 34.368 mhz 010 51.84 mhz 011 19.44 mhz 100 77.76 mhz 101 undefined 11x undefined
ds3170 ds3/e3 single-chip transceiver 129 of 233 register name: gl.giocr register description: global general purpose io control register register address: 00ah bit # 15 14 13 12 11 10 9 8 name gpio8s1 gpio8s0 gpio7s1 gpio7s0 gpio6s1 gpio6s0 gpio5s1 gpio5s0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name gpio4s1 gpio4s0 gpio3s1 gpio3s0 gpio2s1 gpio2s0 gpio1s1 gpio1s0 default 0 0 0 0 0 0 0 0 bits 15 to 14: general purpose io 8 select [1:0] (gpio8s[1:0]). these bits determine the function of the gpio8 pin. these selections are only valid if gl.cr1 .gpm[1:0] is not set to 01. 00 = input 01 = reserved 10 = output logic 0 11 = output logic 1 bits 13 to 12: general purpose io 7 select [1:0] (gpio7s[1:0]). these bits determine the function of the gpio7 pin. 00 = input 01 = reserved 10 = output logic 0 11 = output logic 1 bits 11 to 10 : general purpose io 6 select [1:0] (gpio6s[1:0]). these bits determine the function of the gpio6 pin. these selections are only valid if gl.cr1 .meims=0. 00 = input 01 = reserved 10 = output logic 0 11 = output logic 1 bits 9 to 8: general purpose io 5 select [1:0] (gpio5s[1:0]). these bits determine the function of the gpio5 pin. 00 = input 01 = reserved 10 = output logic 0 11 = output logic 1 bits 7 to 6: general purpose io 4 select [1:0] (gpio4s[1:0]). these bits determine the function of the gpio4 pin. these selections are only valid if gl.cr2 .g8kris=0. 00 = input 01 = reserved 10 = output logic 0 11 = output logic 1 bits 5 to 4: general purpose io 3 select [1:0] (gpio3s[1:0]). these bits determine the function of the gpio3 pin. 00 = input 01 = reserved 10 = output logic 0 11 = output logic 1 bits 3 to 2: general purpose io 2 select [1:0] (gpio2s[1:0]). these bits determine the function of the gpio2 pin. these selections are only valid if gl.cr2 . gkros=0. 00 = input 01 = port b status output selected by port.cr4 :gpiob[3:0] in port control registers 10 = output logic 0 11 = output logic 1
ds3170 ds3/e3 single-chip transceiver 130 of 233 bits 1 to 0: general purpose io 1 select [1:0] (gpio1s[1:0]). these bits determine the function of the gpio1 pin. 00 = input 01 = port a status output selected by port.cr4 :gpioa[3:0] in port control registers 10 = output logic 0 11 = output logic 1 register name: gl.isr register description: global interrupt status register register address: 010h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- pisr -- -- -- gsr bit 4: port interrupt status register (pisr) this bit is set when any of the bits in the port interrupt status registers ( port.isr ) are set. the int interrupt pin will be driven low when this bit is set and the gl.isrie .pisrie interrupt enable bit is enabled. bit 0: global status register interrupt status (gsr) this bit is set when any of the latched status register bits in the global latched status register ( gl.srl ) are set and enabled for interrupt. the int interrupt pin will be driven low when this bit is set and the gl.isrie .gsrie interrupt enable bit is enabled. register name: gl.isrie register description: global interrupt status register interrupt enable register address: 012h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- pisrie -- -- reserved gsrie default 0 0 0 0 0 0 0 0 bit 4: port interrupt status register interrupt enable (pisrie) when this is enabled and the gl.isr. pisr status bit is set, the int pin will be driven low. 0 = interrupt disabled 1 = interrupt enabled bit 0: global status register interrupt status interrupt enable (gsrie) when this interrupt enable bit is enabled, and the gl.isr .gsr status bit is set, the int pin will be driven low. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 131 of 233 register name: gl.sr register description: global status register register address: 014h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- clol gpms bit 1 : clad loss of lock (clol) ? this bit is set when any of the plls in the clad are not locked to the reference frequency. bit 0: global performance monitoring update status (gpms) this bit is set when all of the port performance register update status bits ( port.sr. pmu), that are enabled for global update control ( port.cr2. pmum=1), are set. it is an ?and? of all the globally enabled port pmu status bits. in global software update mode, the global update request bit ( gl.cr. gpmu) should be held high until this status bit goes high. 0 = the associated update request signal is low or not all register updates are completed 1 = the requested performance register updates are all completed register name: gl.srl register description: global status register latched register address: 016h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- 8krefl cladl onesl cloll gpmsl bit 4: 8khz reference activity status latched (8krefl) this bit will be set when the 8 khz reference signal on the gpio4 pin is active. the gl.cr2 .g8kis bit must be set for the activity to be monitored. bit 3: clad reference clock activity status latched (cladl) this bit will be set when the clad pll reference clock signal on the refclk pin is active. bit 2: one second status latched (onesl) this bit will be set once a second. the gl.isr .gsr status bit will be set when this bit is set and the gl.srie .onesie bit is enabled. the int pin will be driven low if this bit is set and the gl.srie .onesie bit and the gl.isrie .gsrie bit are enabled. bit 1: clad loss of lock latched (cloll) this bit will be set when the gl.sr .clol status bit changes from low to high. the gl.isr .gsr bit will be set when this bit is set and the gl.srie .clolie bit is set and the int pin will be driven low if the gl.isrie .gsrie bit is also enabled. bit 0: global performance monitoring update status latched (gpmsl) this bit will be set when the gl.sr .gpms status bit changes from low to high. this bit will set the gl.isr .gsr status bit if the gl.srie .gpmsie is enabled. this bit will drive the interrupt pin low if the gl.srie .gpmsie bit and the gl.isrie .gsrie bit are enabled.
ds3170 ds3/e3 single-chip transceiver 132 of 233 register name: gl.srie register description: global status register interrupt enable register address: 018h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- onesie clolie gpmsie default 0 0 0 0 0 0 0 0 bit 2: one second interrupt enable (onesie) this bit will drive the interrupt pin low if the gl.srl .onesl bit is set, and the gl.isrie .gsrie bit is enabled. 0 = interrupt disabled 1 = interrupt enabled bit 1: clad loss of lock interrupt enable (clolie) the interrupt pin will be driven when this bit is enabled, the gl.srl .cloll is set, and gl.isrie .gsrie bit is enabled. 0 = interrupt disabled 1 = interrupt enabled bit 0: global performance monitoring update status interrupt enable (gpmsie) the interrupt pin will be driven when this bit is enabled and the gl.srl .gpmsl bit is set and the gl.isrie .gsrie bit is enabled. 0 = interrupt disabled 1 = interrupt enabled register name: gl.giorr register description: global general purpose io read register register address: 01ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name gpio8 gpio7 gpio6 gpio5 gpio4 gpio3 gpio2 gpio1 bits 7 to 0: general purpose io status [8:1]] (gpio[8:1] ) these bits reflect the input or output signal on the 8 general purpose io pins.
ds3170 ds3/e3 single-chip transceiver 133 of 233 11.3 port register 11.3.1 register bit descriptions table 11-12. port register map address register register description 0 40h port.cr1 port control register 1 0 42h port.cr2 port control register 2 0 44h port.cr3 port control register 3 0 46h port.cr4 port control register 4 0 48h -- unused 0 4ah port.inv1 port io invert control register 1 0 4ch port.inv2 port io invert control register 2 0 4eh -- unused 0 50h port.isr port interrupt status register 0 52h port.sr port status register 0 54h port.srl port status register latched 0 56h port.srie port status register interrupt enable 0 58h -- unused 0 5ah -- unused 0 5ch -- unused 0 5eh -- unused
ds3170 ds3/e3 single-chip transceiver 134 of 233 register name: port.cr1 register description: port control register 1 register address: 040h bit # 15 14 13 12 11 10 9 8 name reserved pais2 pais1 pais0 lais1 lais0 bena reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tmei meim -- pmum pmu pd rstdp rst default 0 0 -- 0 0 1 1 0 bits 14 to 12: payload ais select [2:0] (pais[2:0]). this bit controls when an unframed all ones signal is forced on the receive data path after the receive framer and payload loopback mux. default: payload ais always sent. pais[2:0] port.cr1 when ais is sent ais code 000 always ua1 001 when llb (no dlb) active ua1 010 when plb active ua1 011 when llb(no dlb) or plb active ua1 100 when los (no dlb) active ua1 101 when oof active ua1 110 when oof, los. llb (no dlb), or plb active ua1 111 never none bits 11 to 10: line ais select [1:0] (lais[1:0). these bits control when a ds3 framed ais or an unframed all ones signal is to be transmitted on tpos/tneg and/or txp/txn. the signal on tpos/tneg can be ami or unipolar. this signal is sent even when in diagnostic l oopback and always over-rides signals from the framers. default: ais sent if dlb is enabled. lais[1:0] port.cr1 frame mode description ais code 00 ds3 automatic ais when dlb is enabled ( port.cr4 .lbm = 1xx) ds3ais 00 e3 automatic ais when dlb is enabled ua1 01 any send ua1 ua1 10 ds3 send ais ds3ais 10 e3 send ais ua1 11 any disable none bit 9: bert enable (bena). this bit is used to enable the transmit bert logic; the receive bert is always enabled. the bert pattern will replace the the system interface datastream (tser) into the payload datastream. 0 = tranmit bert logic disabled and powered down
ds3170 ds3/e3 single-chip transceiver 135 of 233 1 = transmit bert logic enabled bit 7: transmit manual error insert (tmei) this bit is used to insert errors in all error insertion logic configured to use this bit when port.cr1 .meim=0. the error(s) will be inserted when this bit is toggled low to high. bit 6 : transmit manual error insert mode (meim). these bits select the method transmit manual error insertion for this port for error generators configured to use the external tmei signal. the global updates are controlled by the gl.cr1 .meims bit. 0 = port software update via port.cr1 .tmei 1 = global update source bit 4: performance monitor update mode (pmum). these bits select the method of updating the performance monitor registers. the global updates are controlled by the gl.cr1 .gpmu bits. 0 = port software update 1 = global update bit 3: performance monitor register update (pmu) this bit is used to update all of the performance monitor registers configured to use this bit when port.cr1 .pmum=0. the performance registers configured to use this signal will be updated with the latest count value and the counters reset when this bit is toggled low to high. the bit should remain high until the performance register update status bit ( port.sr .pms) goes high, then it should be brought back low which clears the pms status bit. bit 2: power-down (pd). when this bit is set, the liu and digital logic for this port are powered down and considered ?out of service?. the logic is powered down by stopping the clocks. see the reset and power-down section 9.3 . 0 = normal operation 1 = power-down port circuits (default state) bit 1: reset data path (rstdp). when this bit is set, it will force all of the internal data path registers to their default state. this bit must be set high for a minimum of 100ns and then set back low. see the reset and power- down section 9.3 . note: the default state of this bit is 1 (after a general reset (port or global), this bit will be set to one). 0 = normal operation 1 = force all data path registers to their default values bit 0: reset (rst). when this bit is set, it will force all the internal data path and status and control registers (except this rst bit) of this port to their default state. see the reset and power-down section 9.3 . this bit must be set high for a minimum of 100ns and then set back low. this software bit is logically or?ed with the inverted hardware signal rst and the gl.cr1 .rst bit. 0 = normal operation 1 = force all internal registers to their default values register name: port.cr2 register description: port control register 2 register address: 042h bit # 15 14 13 12 11 10 9 8 name tlen tts rmon tlbo reserved lm2 lm1 lm0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved fm2 fm1 fm0 reserved reserved reserved default 0 0 0 0 0 0 0 0 bit 15: transmit line io signal enable (tlen). this bit is used to enable to transmit line interface output pins tlclk, tpos/tdat and tneg. 0 = disable, force outputs low 1 = enable normal operation bit 14: transmit liu tri-state (tts) this bit is used to tri-state the transmit txp and txn pins. the liu is still powered up when the pins are tri-stated. it has no effect when the liu is disabled and powered down.
ds3170 ds3/e3 single-chip transceiver 136 of 233 0 = txp and txn driven 1 = txp and txn tri-stated bit 13: receive liu monitor mode (rmon) this bit is used to enable the receive liu monitor mode pre-amplifier. enabling the pre-amplifier adds about 20 db of linear amplification for use in monitor applications where the signal has been reduced 20 db using resistive attenuator circuits. 0 = disable the 20 db pre-amp 1 = enable the 20 db pre-amp bit 12: transmit liu lbo (tlbo) this bit is used enable the transmit lbo circuit which causes the transmit signal to have a wave shape that approximates about 225 feet of cable. this is used to reduce near end crosstalk when the cable lengths are short. this signal is only valid in ds3 liu mode. 0 = txp and txn have full amplitude signals 1 = txp and txn signals approximate 225 feet of cable bits 10 to 8 : port interface mode (lm[2:0]). the lm[2:0] bits select main port interface operational modes. the default state disables the liu and the ja. table 9-26. line mode select bits lm[2:0] line.tcr . tzsd & line.rcr .rzsd lm[2:0] (port.cr2 ) line code liu ja 0 000 b3zs/hdb3 off off 0 001 b3zs/hdb3 on off 0 010 b3zs/hdb3 on tx 0 011 b3zs/hdb3 on rx 1 000 ami off off 1 001 ami on off 1 010 ami on tx 1 011 ami on rx x 1xx uni off off bits 5 to 3: framing mode (fm[2:0]). the fm[2:0] bits select main framing operational modes. default: ds3 c- bit. fm[2:0] description line code figure 0 00 ds3 c-bit framed b3zs/ami/uni figure 6-1 0 01 ds3 m23 framed b3zs/ami/uni figure 6-1 0 10 e3 g.751 famed hdb3/ami/uni figure 6-1 0 11 e3 g.832 framed hdb3/ami/uni figure 6-1 1 00 ds3 unframed b3zs/ami/uni figure 6-2 1 01 undefined --- 1 10 e3 unframed hdb3/ami/uni figure 6-2 1 11 undefined ---
ds3170 ds3/e3 single-chip transceiver 137 of 233 register name: port.cr3 register description: port control register 3 register address: 044h bit # 15 14 13 12 11 10 9 8 name -- -- rclks rsofos reserved tclks tsofos reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name p8krs1 p8krs0 p8kref loopt cladc rfts tfts tlts default 0 0 0 0 0 0 0 0 bit 13: receive clock output select (rclks). this bit is used to select the function of the rgclk / rclko pins. see table 9-24 . 0 = selects the rgclk signal, or the drive low pin function. 1 = selects rclko signal. bit 12: receive start of frame output select (rsofos). this bit is to select the function of the rsofo / rden pins. see table 9-23 . 0 = selects rden signal. 1 = selects rsofo signal. bit 10: transmit clock output select (tclks). this bit is used to select the function of the tgclk / tclko pins. see table 9-22 . 0 = selects tgclk signal. 1 = selects tclko signal. bit 9: transmit start of frame output select (tsofos). this bit is used to select the function of the tsofo / tden pins. see table 9-21 . 0 = selects tden signal. 1 = selects tsofo signal. bits 7 to 6: port 8 khz reference source select (p8krs[1:0]). this bit selects the source of the 8 khz reference from the port sources. the 8k reference for this port can be used as the global 8k reference source. see table 9-13 . table 9-13. port 8 khz reference source table port.cr3.p8krs[1:0] source 0x undefined 10 internal receive framer clock 11 internal transmit framer clock bit 5: port 8 khz reference source (p8kref). this bit selects the source of the 8 khz reference for one second timer. 0 = 8 khz reference from global source 1 = 8 khz reference from port?s selected source bit 4: loop time enable (loopt). when this bit is set, the port is in loop time mode. the transmit clock is set to the receive clock from the rlclk pin or the recovered clock from the liu or the clad clock and the tclki pin is not used. this function of this bit is conditional on other control bits. see table 9-4 for more details. 0 = normal transmit clock operation 1 = transmit using the receive clock bit 3: clad transmit clock source control (cladc). this bit is used to enable the clad clocks as the source of the internal transmit clock. this function of this bit is conditional on other control bits. see table 9-4 for more details. 0 = use clad clocks for the transmit clock as appropriate 1 = do not use clad clocks for t he transmit clock ? (if no loopback is enabled, tclki is the source)
ds3170 ds3/e3 single-chip transceiver 138 of 233 bit 2: receive framer io signal timing select (rfts). this bit controls the timing reference for the signals on the receive framer interface io pins. the pins controlled are rser, rsofo / rden. see table 9-8 for more details. 0 = use output clocks for timing reference 1 = use input clocks for timing reference bit 1: transmit framer io signal timing select (tfts). this bit controls the timing reference for the signals on the transmit framer interface io pins. the pins controlled are tsofin, tser, and tsofo / tden. see table 9-7 for more details. 0 = use output clocks for timing reference 1 = use input clocks for timing reference bit 0: transmit line io signal timing select (tlts). this bit controls the timing reference for the signals on the transmit line interface io pins. the pins controlled are tpos / tdat and tneg. see table 9-6 for more details. 0 = use output clocks for timing reference 1 = use input clocks for timing reference register name: port.cr4 register description: port control register 4 register address: 046h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved lbm2 lbm1 lbm0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name gpiob3 gpiob2 gpiob1 gpiob0 gpioa3 gpioa2 gpioa1 gpioa0 default 0 0 0 0 0 0 0 0 bits 10 to 8: loopback mode [2:0] (lbm[2:0]). these bits select the loopback modes for analog loopback (alb), line loopback (llb), payload loopback (plb) and diagnostic loopback (dlb). see table 9-17 for the loopback select codes. default: no loopback. lbm[2:0] alb llb plb dlb 000 0 0 0 0 001 1 0 0 0 010 0 1 0 0 011 0 0 1 0 10x 0 0 0 1 110 0 1 0 1 111 0 0 0 1 bits 7 to 4: general purpose io b output select[3:0] (gpiob[3:0]) these bits determine which alarm status signal to output on the gpio2, pin. the gpio pin must be enabled by setting the bits in the gl.giocr and gl.cr2 registers to output the selected alarm signal. see table 9-15. see table 9-16 for the alarm select codes. bits 3 to 0: general purpose io a output select[3:0] (gpioa[3:0]) these bits determine which alarm status signal to output on the gpio1 pin. the gpio pin must be enabled for output by setting the bits in the gl.giocr register. see table 9-15 for configuration settings. see table 9-16 below for the alarm select codes.
ds3170 ds3/e3 single-chip transceiver 139 of 233 table 9-16. gpio port alarm monitor select port.cr4 gpio(a/b)[3:0] line los ds3/e3 oof ds3/e3 lof ds3/e3 ais ds3/e3 rai ds3 idle 0000 x 0001 x 0010 x 0011 x 0100 x 0101 x 0110 0111 1000 1001 1010 1011 x x x 1100 1101 x x x 1110 x x 1111 x x x x x x
ds3170 ds3/e3 single-chip transceiver 140 of 233 register name: port.inv1 register description: port io invert c ontrol register 1 register address: 04ah bit # 15 14 13 12 11 10 9 8 name reserved reserved -- tsofoi reserved tseri tohsi tohei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tohi tohcki tsofii tnegi tdati tlcki tckoi tckii default 0 0 0 0 0 0 0 0 bit 12 : tsofo / tden/ invert (tsofoi). this bit inverts the tsofo / tden pin when set. bit 10 : tser invert (tseri). this bit inverts the tser pin when set. bit 9 : tohsof invert (tohsi). this bit inverts the tohsof pin when set. bit 8 : tohen invert (tohei). this bit inverts the tohen pin when set. bit 7 : toh invert (tohi). this bit inverts the toh pin when set. bit 6 : tohclk invert (tohcki). this bit inverts the tohclk pin when set. bit 5 : tsofin invert (tsofii). this bit inverts the tsofin pin when set. bit 4 : tneg invert (tnegi). this bit inverts the tneg pin when set. bit 3 : tdat invert (tdati). this bit inverts the tdat pin when set. bit 2 : tlclk invert (tlcki). this bit inverts the tlclk pin when set. bit 1 : tclko / tgclk invert (tckoi). this bit inverts the tclko / tgclk pin when set. bit 0 : tclki invert (tckii). this bit inverts the tclki pin when set. register name: port.inv2 register description: port io invert c ontrol register 2 register address: 04ch bit # 15 14 13 12 11 10 9 8 name -- reserved reserved rsofoi -- rseri rohsi -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rohi rohcki -- rnegi rposi rlcki rclkoi -- default 0 0 0 0 0 0 0 0 bit 12 : rsofo / rden invert (rsofoi). this bit inverts the rsofo / rden pin when set. bit 10 : rser invert (rseri). this bit inverts the rser pin when set. bit 9 : rohsof invert (rohsi). this bit inverts the rohsof pin when set. bit 7 : roh invert (rohi). this bit inverts the roh pin when set. bit 6 : rohclk invert (rohcki). this bit inverts the rohclk pin when set. bit 4 : rneg / rlcv invert (rnegi). this bit inverts the rneg / rlcv when set. bit 3 : rpos / rdat invert (rposi). this bit inverts the rpos / rdat pin when set. bit 2 : rlclk invert (rlcki). this bit inverts the rlclk pin when set. bit 1 : rclko / rgcl k invert (rclkoi). this bit inverts the rclko / rgclk pin when set.
ds3170 ds3/e3 single-chip transceiver 141 of 233 register name: port.isr register description: port interrupt status register register address: 050h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- psr lcsr bit # 7 6 5 4 3 2 1 0 name ttsr fsr hsr bsr reserved reserved reserved fmsr bit 9: port status register interrupt status (psr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the port.srl register are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. bit 8: line code status register interrupt status (lcsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the b3zs/hdb3 line encoder/decoder block are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. bit 7: trail trace status register interrupt status (ttsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the trail trace block are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. bit 6: feac status register interrupt status (fsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the feac block are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. bit 5: hdlc status register interrupt status (hsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the hdlc block are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. bit 4: bert status register interrupt status (bsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the bert block are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. bit 0: framer status register interrupt status (fmsr) this bit is set when any of the latched status register bits, that are enabled for interrupt, in the active ds3 or e3 framer block are set. the interrupt pin will be driven when this bit is set and the gl.isrie .pisrie bit is set. register name: port.sr register description: port status register register address: 052h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tdm rlol pms bit 2: transmit driver monitor status (tdm) this bits indicates the status of the transmit monitor circuit in the transmit liu. 0 = transmit output not over loaded 1 = transmit signal is overloaded
ds3170 ds3/e3 single-chip transceiver 142 of 233 bit 1: receive loss of lock status (rlol) this bits indicates the status of the receive liu clock recovery pll circuit. 0 = locked to the incoming signal 1 = not locked to the incoming signal bit 0: performance monitoring update status (pms) this bits indicates the status of all active performance monitoring register and counter update signals in this port. it is an ?and? of all update status bits and is not set until all performance registers are updated and the counters reset. in software update modes, the update request bit port.cr1.pmu should be held high until this status bit goes high. 0 = the associated update request signal is low 1 = the requested performance register updates are all completed register name: port.srl register description: port status register latched register address: 054h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name rlclkl tclkil -- -- -- tdml rloll pmsl bit 7: receive line clock activity status latched (rlclkl) this bit will be set when the signal on the rlclk pin or the recovered clock from the liu for this port is active. bit 6: transmit input clock activity status latched (tclkil) this bit will be set when the signal on the tclki pin for this port is active. bit 2: transmit driver monitor status latched (tdml) this bit will be set when the port.sr. tdm status bit changes from low to high. this bit will also set the port.isr. psr status bit if the port.srie. tdmie bit is enabled. the interrupt pin will be driven when this bit is set, the port.srie. tdmie bit is set, and the corresponding gl.isrie. pisrie bit is also set. bit 1: receive loss of lock status latched (rloll) this bit will be set when the port.sr .rlol status bit changes from low to high. this bit will also set the port.isr .psr status bit if the port.srie .rlolie bit is enabled. the interrupt pin will be driven when this bit is set, the port.srie .rlolie bit is set, and the corresponding gl.isrie .pisrie bit is also set. bit 0: performance monitoring update status latched (pmsl) this bit will be set when the port.sr .pms status bit changes from low to high. this bit will also set the port.isr .psr status bit if the port.srie .pmuie bit is enabled. the interrupt pin will be driven when this bit is set, the port.srie .pmuie bit is set, and the port.srie .pmsie bit are set. register name: port.srie register description: port status register interrupt enable register address: 056h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tdmie rlolie pmsie default 0 0 0 0 0 0 0 0 bit 2: transmit driver monitor latched status interrupt enable (tdmie) the interrupt pin will be driven when this bit is enabled and the port.srl .tdml bit is set and the gl.isrie .pisrie bit is enabled.
ds3170 ds3/e3 single-chip transceiver 143 of 233 bit 1: receive loss of lock latched status interrupt enable (rlolie) the interrupt pin will be driven when this bit is enabled and the port.srl .rloll bit is set and the bit in gl.isrie .pisrie bit is enabled. bit 0: performance monitoring update latched status interrupt enable (pmsie) the interrupt pin will be driven when this bit is enabled and the port.srl .pmsl bit is set and the bit in gl.isrie .pisrie bit is enabled.
ds3170 ds3/e3 single-chip transceiver 144 of 233 11.4 bert 11.4.1 bert register map the bert utilizes twelve registers. table 11-13. bert register map address register register description 060h bert.cr bert control register 062h bert.pcr bert pattern configuration register 064h bert.spr1 bert seed/pattern register #1 066h bert.spr2 bert seed/pattern register #2 068h bert.teicr bert transmit error insertion control register 06ah -- unused 06ch bert.sr bert status register 06eh bert.srl bert status register latched 070h bert.srie bert status register interrupt enable 072h -- unused 074h bert.rbecr1 bert receive bit error count register #1 076h bert.rbecr2 bert receive bit error count register #2 078h bert.rbcr1 bert receive bit count register #1 07ah bert.rbcr2 bert receive bit count register #2 07ch -- unused 07eh -- unused 11.4.2 bert register bit descriptions register name: bert.cr register description: bert control register register address: 060h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pmum lpmu rnpl rpic mpr aprd tnpl tpic default 0 0 0 0 0 0 0 0 bit 7: performance monitoring update mode (pmum) ? when 0, a performance monitoring update is initiated by the lpmu register bit. when 1, a performance monitoring update is initiated by the global or port pmu register bit. note: if the lpmu bit or the global or port pmu bit is one, changing the state of this bit may cause a performance monitoring update to occur. bit 6: local performance monitoring update (lpmu) ? this bit causes a performance monitoring update to be initiated if local performance monitoring update is enabled (pmum = 0). a 0 to 1 transition causes the performance monitoring registers to be updated with the latest data, and the counters reset (0 or 1). for a second performance monitoring update to be initiated, this bit must be set to 0, and back to 1. if lpmu goes low before the pms bit goes high; an update might not be performed. this bit has no affect when pmum=1. bit 5: receive new pattern load (rnpl) ? a zero to one transition of this bit will cause the programmed test pattern (qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0]) to be loaded in to the receive pattern generator. this bit
ds3170 ds3/e3 single-chip transceiver 145 of 233 must be changed to zero and back to one for another pattern to be loaded. loading a new pattern will forces the receive pattern generator out of the ?sync? state which causes a resynchronization to be initiated. note: qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0] must not change from the time this bit transitions from 0 to 1 until four receive clock cycles after this bit transitions from 0 to 1. bit 4: receive pattern inversion control (rpic) ? when 0, the receive incoming data stream is not altered. when 1, the receive incoming data stream is inverted. bit 3: manual pattern resynchronization (mpr) ? a zero to one transition of this bit will cause the receive pattern generator to resynchronize to the incoming pattern. this bit must be changed to zero and back to one for another resynchronization to be initiated. note: a manual resynchronization forces the receive pattern generator out of the ?sync? state. bit 2: automatic pattern resynchronization disable (aprd) ? when 0, the receive pattern generator will automatically resynchronize to the incoming pattern if six or more times during the current 64-bit window the incoming data stream bit and the receive pattern generator output bit did not match. when 1, the receive pattern generator will not automatically resynchronize to the incoming pattern. bit 1: transmit new pattern load (tnpl) ? a zero to one transition of this bit will cause the programmed test pattern (qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0]) to be loaded in to the transmit pattern generator. this bit must be changed to zero and back to one for another pattern to be loaded. note: qrss, pts, plf[4:0}, ptf[4:0], and bsp[31:0] must not change from the time this bit transitions from 0 to 1 until four transmit clock cycles after this bit transitions from 0 to 1. bit 0: transmit pattern inversion control (tpic) ? when 0, the transmit outgoing data stream is not altered. when 1, the transmit outgoing data stream is inverted. register name: bert.pcr register description: bert pattern configuration register register address: 062h bit # 15 14 13 12 11 10 9 8 name -- -- -- ptf4 ptf3 ptf2 ptf1 ptf0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- qrss pts plf4 plf3 plf2 plf1 plf0 default 0 0 0 0 0 0 0 0 bits 12 to 8: pattern tap feedback (ptf[4:0]) ? these five bits control the prbs ?tap? feedback of the pattern generator. the ?tap? feedback will be from bit y of the pattern generator (y = ptf[4:0] +1). these bits are ignored when programmed for a repetitive pattern. for a prbs signal, the feedback is an xor of bit n and bit y. bit 6: qrss enable (qrss) ? when 0, the pattern generator configuration is controlled by pts, plf[4:0], and ptf[4:0], and bsp[31:0]. when 1, the pattern generator configuration is forced to a prbs pattern with a generating polynomial of x 20 + x 17 + 1. the output of the pattern generator will be forced to one if the next fourteen output bits are all zero. bit 5: pattern type select (pts) ? when 0, the pattern is a prbs pattern. when 1, the pattern is a repetitive pattern. bits 4 to 0: pattern length feedback (plf[4:0]) ? these five bits control the ?length? feedback of the pattern generator. the ?length? feedback will be from bit n of the pattern generator (n = plf[4:0] +1). for a prbs signal, the feedback is an xor of bit n and bit y. for a repetitive pattern the feedback is bit n.
ds3170 ds3/e3 single-chip transceiver 146 of 233 register name: bert.spr1 register description: bert seed/pattern register #1 register address: 064h bit # 15 14 13 12 11 10 9 8 name bsp15 bsp14 bsp13 bsp12 bsp11 bsp10 bsp9 bsp8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bsp7 bsp6 bsp5 bsp4 bsp3 bsp2 bsp1 bsp0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bert seed/pattern (bsp[15:0]) ? lower sixteen bits of 32 bits. register description follows next register. register name: bert.spr2 register description: bert seed/pattern register #2 register address: 066h bit # 15 14 13 12 11 10 9 8 name bsp31 bsp30 bsp29 bsp28 bsp27 bsp26 bsp25 bsp24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bsp23 bsp22 bsp21 bsp20 bsp19 bsp18 bsp17 bsp16 default 0 0 0 0 0 0 0 0 bits 15 to 0: bert seed/pattern (bsp[31:16]) - upper 16 bits of 32 bits. bert seed/pattern (bsp[31:0]) ? these 32 bits are the programmable seed for a transmit prbs pattern, or the programmable pattern for a transmit or receive repetitive pattern. bsp(31) will be the first bit output on the transmit side for a 32-bit repetitive pattern or 32-bit length prbs. bsp(31) will be the first bit input on the receive side for a 32-bit repetitive pattern. register name: bert.teicr register description: bert transmit error in sertion control register register address: 068h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- teir2 teir1 teir0 bei tsei meims default 0 0 0 0 0 0 0 0 bits 5 to 3: transmit error insertion rate (teir[2:0]) ? these three bits indicate the rate at which errors are inserted in the output data stream. one out of every 10 n bits is inverted. teir[2:0] is the value n. a teir[2:0] value of 0 disables error insertion at a specific rate. a teir[2:0] value of 1 result in every 10 th bit being inverted. a teir[2:0] value of 2 result in every 100 th bit being inverted. error insertion starts when this register is written to with a teir[2:0] value that is nonzero. if this register is written to during the middle of an error insertion process, the new error rate will be started after the next error is inserted.
ds3170 ds3/e3 single-chip transceiver 147 of 233 teir[2:0] error rate 000 disabled 001 1*10 -1 010 1*10 -2 011 1*10 -3 100 1*10 -4 101 1*10 -5 110 1*10 -6 111 1*10 -7 bit 2: bit error insertion enable (bei) ? when 0, single bit error insertion is disabled. when 1, single bit error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes a bit error to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0) and single bit error insertion is enabled. a 0 to 1 transition causes a single bit error to be inserted. for a second bit error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause a bit error to be inserted. register name: bert.sr register description: bert status register register address: 06ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- pms -- bec oos bit 3: performance monitoring update status (pms) ? this bit indicates the status of the receive performance monitoring register (counters) update. this bit will transition from low to high when the update is completed. pms will be forced low when the lpmu bit (pmum = 0) or the global or port pmu bit (pmum=1) goes low. bit 1: bit error count (bec) ? when 0, the bit error count is zero. when 1, the bit error count is one or more. this bit is cleared when the user updates the bert counters via the pmu bit (bert.cr). bit 0: out of synchronization (oos) ? when 0, the receive pattern generator is synchronized to the incoming pattern. when 1, the receive pattern generator is not synchronized to the incoming pattern.
ds3170 ds3/e3 single-chip transceiver 148 of 233 register name: bert.srl register description: bert status register latched register address: 06eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- pmsl bel becl oosl bit 3: performance monitoring update status latched (pmsl) ? this bit is set when the pms bit transitions from 0 to 1. bit 2: bit error latched (bel) ? this bit is set when a bit error is detected. bit 1: bit error count latched (becl) ? this bit is set when the bec bit transitions from 0 to 1. bit 0: out of synchronization latched (oosl) ? this bit is set when the oos bit changes state. register name: bert.srie register description: bert status register interrupt enable register address: 070h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- pmsie beie becie oosie default 0 0 0 0 0 0 0 0 bit 3: performance monitoring update status interrupt enable (pmsie) ? this bit enables an interrupt if the pmsl bit is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: bit error interrupt enable (beie) ? this bit enables an interrupt if the bel bit is set and the gl.isrie .psrie bit is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: bit error count interrupt enable (becie) ? this bit enables an interrupt if the becl bit is set and the gl.isrie .psrie bit is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: out of synchronization interrupt enable (oosie) ? this bit enables an interrupt if the oosl bit is set and the gl.isrie .psrie bit is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 149 of 233 register name: bert.rbecr1 register description: bert receive bit error count register #1 register address: 074h bit # 15 14 13 12 11 10 9 8 name bec15 bec14 bec13 bec12 bec11 bec10 bec9 bec8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bec7 bec6 bec5 bec4 bec3 bec2 bec1 bec0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bit error count (bec[15:0]) ? lower sixteen bits of 24 bits. register description follows next register. register name: bert.rbecr2 register description: bert receive bit error count register #2 register address: 076h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bec23 bec22 bec21 bec20 bec19 bec18 bec17 bec16 default 0 0 0 0 0 0 0 0 bits 7 to 0: bit error count (bec[23:16]) - upper 8-bits of register. bit error count (bec[23:0]) ? these twenty-four bits indicate the number of bit errors detected in the incoming data stream. this count stops incrementing when it reaches a count of ff ffffh. this bit error counter will not increment when an oos condition exists. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 150 of 233 register name: bert.rbcr1 register description: receive bit count register #1 register address: 078h bit # 15 14 13 12 11 10 9 8 name bc15 bc14 bc13 bc12 bc11 bc10 bc9 bc8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bc7 bc6 bc5 bc4 bc3 bc2 bc1 bc0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bit count (bc[15:0]) ? lower sixteen bits of 32 bits. register description follows next register. register name: bert.rbcr2 register description: receive bit count register #2 register address: 07ah bit # 15 14 13 12 11 10 9 8 name bc31 bc30 bc29 bc28 bc27 bc26 bc25 bc24 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bc23 bc22 bc21 bc20 bc19 bc18 bc17 bc16 default 0 0 0 0 0 0 0 0 bits 15 to 0: bit count (bc[31:16]) - upper 16 bits of 32 bits. bit count (bc[31:0]) ? these thirty-two bits indicate the number of bits in the incoming data stream. this count stops incrementing when it reaches a count of ffff ffffh. this bit counter will not increment when an oos condition exists. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 151 of 233 11.5 b3zs/hdb3 line encoder/decoder 11.5.1 transmit side line encoder/decoder register map the transmit side utilizes one register. table 11-14. transmit side b3zs/hdb3 line encoder/decoder register map address register register description 08ch line.tcr line transmit control register 08eh -- unused 11.5.1.1 register bit descriptions register name: line.tcr register description: line transmit control register register address: 08ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- tzsd exzi bpvi tsei meims default 0 0 0 0 0 0 0 0 bit 4: transmit zero suppression encoding disable (tzsd) ? when 0, the b3zs/hdb3 encoder performs zero suppression (b3zs or hdb3) and ami encoding. when 1, zero suppression (b3zs or hdb3) encoding is disabled, and only ami encoding is performed. bit 3: excessive zero insert enable (exzi) ? when 0, excessive zero (exz) event insertion is disabled. when 1, exz event insertion is enabled. bit 2: bipolar violation insert enable (bpvi) ? when 0, bipolar violation (bpv) insertion is disabled. when 1, bpv insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3170 ds3/e3 single-chip transceiver 152 of 233 11.5.2 receive side line encoder/decoder register map the receive side utilizes six registers. table 11-15. receive side b3zs/hdb3 line encoder/decoder register map address register register description 090h line.rcr line receive control register 092h -- unused 094h line.rsr line receive status register 096h line.rsrl line receive status register latched 098h line.rsrie line receive status register interrupt enable 09ah -- unused 09ch line.rbpvcr line receive bipolar violation count register 09eh line.rexzcr line receive excessive zero count register 11.5.2.1 register bit descriptions register name: line.rcr register description: line receive control register register address: (0.2.4.6)90h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- e3cve rezsf rdzsf rzsd default 0 0 0 0 0 0 0 0 bit 2: e3 code violation enable (e3cve) ? when 0, the bipolar violation count will be a count of bipolar violations. when 1, the bipolar violation count will be a count of e3 line coding violations. note: e3 line coding violations are defined as consecutive bipolar violations of the same polarity in itu o.161. this bit is ignored in b3zs mode. bit 2: receive bpv error detection zero suppression code format (rezsf) ? when 0, bpv error detection detects a b3zs signature if a zero is followed by a bipolar violation (bpv), and an hdb3 signature if two zeros are followed by a bpv. when 1, bpv error detection detects a b3zs signature if a zero is followed by a bpv that has the opposite polarity of the bpv in the previous b3zs signature, and an hdb3 signature if two zeros are followed by a bpv that has the opposite polarity of the bpv in the previous hdb3 signature. note: immediately after a reset, this bit is ignored. the first b3zs signature is defined as a zero followed by a bpv, and the first hdb3 signature is defined as two zeros followed by a bpv. all subsequent b3zs/hdb3 signatures will be determined by the setting of this bit. note: the default setting (rezsf = 0) conforms to itu o.162. the default setting may falsely decode actual bpvs that are not codewords. it is recommended that rezsf be set to one for most applications. this setting is more robust to accurately detect codewords. bit 1: receive zero suppression decodi ng zero suppression code format (rdzsf) ? when 0, zero suppression decoding detects a b3zs signature if a zero is followed by a bipolar violation (bpv), and an hdb3 signature if two zeros are followed by a bpv. when 1, zero suppression decoding detects a b3zs signature if a zero is followed by a bpv that has the opposite polarity of the bpv in the previous b3zs signature, and an hdb3 signature if two zeros are followed by a bpv that has the opposite polarity of the bpv in the previous hdb3 signature. note: immediately after a reset ( drst or rst low), this bit is ignored. the first b3zs signature is defined as a zero followed by a bpv, and the first hdb3 signature is defined as two zeros followed by a bpv. all subsequent b3zs/hdb3 signatures will be determined by the setting of this bit.
ds3170 ds3/e3 single-chip transceiver 153 of 233 bit 0: receive zero suppression decoding disable (rzsd) ? when 0, the b3zs/hdb3 decoder performs zero suppression (b3zs or hdb3) and ami decoding. when 1, zero suppression (b3zs or hdb3) decoding is disabled, and only ami decoding is performed. register name: line.rsr register description: line receive status register register address: (0.2.4.6)94h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- exzc -- bpvc los bit 3: excessive zero count (exzc) ? when 0, the excessive zero count is zero. when 1, the excessive zero count is one or more. bit 1: bipolar violation count (bpvc) ? when 0, the bipolar violation count is zero. when 1, the bipolar violation count is one or more. bit 0: loss of signal (los) ? when 0, the receive line is not in a loss of signal (los) condition. when 1, the receive line is in an los condition. see section 9.10.4 register name: line.rsrl register description: line receive status register latched register address: (0.2.4.6)96h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- zscdl exzl exzcl bpvl bpvcl losl bit 5: zero suppression code detect latched (zscdl) ? this bit is set when a b3zs or hdb3 signature is detected. bit 4: excessive zero latched (exzl) ? this bit is set when an excessive zero event is detected on the incoming bipolar data stream. bit 3: excessive zero count latched (exzcl) ? this bit is set when the line.rsr.exzc bit transitions from zero to one. bit 2: bipolar violation latched (bpvl) ? this bit is set when a bipolar violation (or e3 lcv if enabled) is detected on the incoming bipolar data stream. bit 1: bipolar violati on count latched (bpvcl) ? this bit is set when the line.rsr.bpvc bit transitions from zero to one. bit 0: loss of signal change latched (losl) ? this bit is set when the line.rsr.los bit changes state. note: when zero suppression (b3zs or hdb3) decoding is disabled, the los condition is cleared, and cannot be detected.
ds3170 ds3/e3 single-chip transceiver 154 of 233 register name: line.rsrie register description: line receive status register interrupt enable register address: (0.2.4.6)98h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- zscdie exzie exzcie bpvie bpvcie losie default 0 0 0 0 0 0 0 0 bit 5: zero suppression code detect interrupt enable (zscdie) ? this bit enables an interrupt if the line.rsrl .zscdl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: excessive zero interrupt enable (exzie) ? this bit enables an interrupt if the line.rsrl .exzl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: excessive zero count interrupt enable (exzcie) ? this bit enables an interrupt if the line.rsrl .exzcl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: bipolar violation interrupt enable (bpvie) ? this bit enables an interrupt if the line.rsrl .bpvl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: bipolar violation count interrupt enable (bpvcie) ? this bit enables an interrupt if the line.rsrl .bpvcl bit and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the line.rsrl .losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: line.rbpvcr register description: line receive bipolar violation count register register address: (0.2.4.6)9ch bit # 15 14 13 12 11 10 9 8 name bpv15 bpv14 bpv13 bpv12 bpv11 bpv10 bpv9 bpv8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name bpv7 bpv6 bpv5 bpv4 bpv3 bpv2 bpv1 bpv0 default 0 0 0 0 0 0 0 0 bits 15 to 0: bipolar violation count (bpv[15:0]) ? these sixteen bits indicate the number of bipolar violations detected on the incoming bipolar data stream. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 155 of 233 register name: line.rexzcr register description: line receive excessive zero count register register address: (0.2.4.6)9eh bit # 15 14 13 12 11 10 9 8 name exz15 exz14 exz13 exz12 exz11 exz10 exz9 exz8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name exz7 exz6 exz5 exz4 exz3 exz2 exz1 exz0 default 0 0 0 0 0 0 0 0 bits 15 to 0: excessive zero count (exz[15:0]) ? these sixteen bits indicate the number of excessive zero conditions detected on the incoming bipolar data stream. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 156 of 233 11.6 hdlc 11.6.1 hdlc transmit side register map the transmit side utilizes five registers. table 11-16. transmit side hdlc register map address register register description 0a0h hdlc.tcr hdlc transmit control register 0a2h hdlc.tfdr hdlc transmit fifo data register 0a4h hdlc.tsr hdlc transmit status register 0a6h hdlc.tsrl hdlc transmit status register latched 0a8h hdlc.tsrie hdlc transmit status register interrupt enable 0aah -- unused 0ach -- unused 0aeh -- unused 11.6.1.1 register bit descriptions register name: hdlc.tcr register description: hdlc transmit control register register address: 0a0h bit # 15 14 13 12 11 10 9 8 name -- -- -- tdal4 tdal3 tdal2 tdal1 tdal0 default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- tpsd tfei tifv tbre tdie tfpd tfrst default 0 0 0 0 0 0 0 0 bits 12 to 8: transmit hdlc data storage available level (tdal[4:0]) ? these five bits indicate the minimum number of bytes ([tdal*8}+1) that must be available for storage (do not contain data) in the transmit fifo for hdlc data storage to be available. for example, a value of 21 (15h) results in hdlc data storage being available (thda=1) when the transmit fifo has 169 (a9h) bytes or more available for storage, and hdlc data storage not being available (thda=0) when the transmit fifo has 168 (a8h) bytes or less available for storage. bit 6: transmit packet start disable (tpsd) ? when 0, the transmit packet processor will continue sending packets after the current packet end. when 1, the transmit packet processor will stop sending packets after the current packet end. bit 5: transmit fcs error insertion (tfei) ? when 0, the calculated fcs (inverted crc-16) is appended to the packet. when 1, the inverse of the calculated fcs (noni nverted crc-16) is appended to the packet causing an fcs error. this bit is ignored if transmit fcs processing is disabled (tfpd = 1). bit 4: transmit inter -frame fill value (tifv) ? when 0, inter-frame fill is done with the flag sequence (7eh). when 1, inter-frame fill is done with all ?1?s. bit 3: transmit bit reordering enable (tbre) ? when 0, bit reordering is disabled (the first bit transmitted is the lsb of the transmit fifo data byte tfd[0]). when 1, bit reordering is enabled (the first bit transmitted is the msb of the transmit fifo data byte tfd[7]). bit 2: transmit data inversion enable (tdie) ? when 0, the outgoing data is directly output from packet processing. when 1, the outgoing data is inverted before being output from packet processing.
ds3170 ds3/e3 single-chip transceiver 157 of 233 bit 1: transmit fcs processing disable (tfpd) ? this bit controls whether or not an fcs is calculated and appended to the end of each packet. when 0, the calculated fcs bytes are appended to the end of the packet. when 1, the packet is transmitted without an fcs. bit 0: transmit fifo reset (tfrst) ? when 0, the transmit fifo will resume normal operations, however, data is discarded until a start of packet is received after ram power-up is completed. when 1, the transmit fifo is emptied, any transfer in progress is halted, the fifo ram is powered down, and all incoming data is discarded (all tfdr register writes are ignored). register name: hdlc.tfdr register description: hdlc transmit fifo data register register address: 0a2h bit # 15 14 13 12 11 10 9 8 name tfd7 tfd6 tfd5 tfd4 tfd3 tfd2 tfd1 tfd0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tdpe default 0 0 0 0 0 0 0 0 note: the fifo data and status are loaded into the transmit fifo when the transmit fifo data (tfd[7:0]) is written (upper byte write). when read, the value of these bits is always zero. bits 15 to 8: transmit fifo data (tfd[7:0]) ? these eight bits are the packet data to be stored in the transmit fifo. tfd[7] is the msb, and tfd[0] is the lsb. if bit reordering is disabled, tfd[0] is the first bit transmitted, and tfd[7] is the last bit transmitted. if bit reordering is enabled, tfd[7] is the first bit transmitted, and tfd[0] is the last bit transmitted. bit 0: transmit fifo data packet end (tdpe) ? when 0, the transmit fifo data is not a packet end. when 1, the transmit fifo data is a packet end. register name: hdlc.tsr register description: hdlc transmit status register register address: 0a4h bit # 15 14 13 12 11 10 9 8 name -- -- tffl5 tffl4 tffl3 tffl2 tffl1 tffl0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tff tfe thda bits 13 to 8: transmit fifo fill level (tffl[5:0]) ? these six bits indicate the number of eight byte groups available for storage (do not contain data) in the transmit fifo. e.g., a value of 21 (15h) indicates the fifo has 168 (a8h) to 175 (afh) bytes are available for storage. bit 2: transmit fifo full (tff) ? when 0, the transmit fifo contains 255 or less bytes of data. when 1, the transmit fifo is full. bit 1: transmit fifo empty (tfe) ? when 0, the transmit fifo contains at least one byte of data. when 1, the transmit fifo is empty. bit 0: transmit hdlc data storage available (thda) ? when 0, the transmit fifo has less storage space available in the transmit fifo than the transmit hdlc data storage available level (tdal[4:0]). when 1, the transmit fifo has the same or more storage space available than the transmit fifo hdlc data storage available level.
ds3170 ds3/e3 single-chip transceiver 158 of 233 register name: hdlc.tsrl register description: hdlc transmit status register latched register address: 0a6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- tfol tful tpel -- tfel thdal bit 5: transmit fifo overflow latched (tfol) ? this bit is set when a transmit fifo overflow condition occurs. bit 4: transmit fifo underflow latched (tful) ? this bit is set when a transmit fifo underflow condition occurs. an underflow condition results in a loss of data. bit 3: transmit packet end latched (tpel) ? this bit is set when an end of packet is read from the transmit fifo. bit 1: transmit fifo empty latched (tfel) ? this bit is set when the tfe bit transitions from 0 to 1. note: this bit is also set when hdlc.tcr.tfrst is deasserted. bit 0: transmit hdlc data available latched (thdal) ? this bit is set when the thda bit transitions from 0 to 1. note: this bit is also set when hdlc.tcr.tfrst is deasserted. register name: hdlc.tsrie register description: hdlc transmit status register interrupt enable register address: 0a8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfoie tfuie tpeie -- tfeie thdaie default 0 0 0 0 0 0 0 0 bit 5: transmit fifo overflow interrupt enable (tfoie) ? this bit enables an interrupt if the tfol bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: transmit fifo underflow interrupt enable (tfuie) ? this bit enables an interrupt if the tful bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: transmit packet end interrupt enable (tpeie) ? this bit enables an interrupt if the tpel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 159 of 233 bit 2: transmit fifo full interrupt enable (tffie) ? this bit enables an interrupt if the tffl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: transmit fifo empty interrupt enable (tfeie) ? this bit enables an interrupt if the tfel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: transmit hdlc data avai lable interrupt enable (thdaie) ? this bit enables an interrupt if the thdal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled 11.6.2 hdlc receive side register map the receive side utilizes five registers. table 11-17. receive side hdlc register map address register register description 0b0h hdlc.rcr hdlc receive control register 0b2h -- unused 0b4h hdlc.rsr hdlc receive status register 0b6h hdlc.rsrl hdlc receive status register latched 0b8h hdlc.rsrie hdlc receive status register interrupt enable 0bah -- unused 0bch hdlc.rfdr hdlc receive fifo data register 0beh -- unused 11.6.2.1 register bit descriptions register name: hdlc.rcr register description: hdlc receive control register register address: 0b0h bit # 15 14 13 12 11 10 9 8 name -- -- -- rdal4 rdal3 rdal2 rdal1 rdal0 default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rbre rdie rfpd rfrst default 0 0 0 0 0 0 0 0 bits 12 to 8: receive hdlc data available level (rdal[4:0]) ? these five bits indicate the minimum number of eight byte groups that must be stored (contain data) in the receive fifo before hdlc data is considered to be available (rhda=1). for example, a value of 21 (15h) results in hdlc data being available when the receive fifo contains 168 (a8h) bytes or more. bit 3: receive bit reordering enable (rbre) ? when 0, bit reordering is disabled (the first bit received is in the lsb of the receive fifo data byte rfd[0]). when 1, bit reordering is enabled (the first bit received is in the msb of the receive fifo data byte rfd[7]). bit 2: receive data inversion enable (rdie) ? when 0, the incoming data is directly passed on for packet processing. when 1, the incoming data is inverted before being passed on for packet processing. bit 1: receive fcs processing disable (rfpd) ? when 0, fcs processing is performed (the packets have an fcs appended). when 1, fcs processing is disabled (the packets do not have an fcs appended).
ds3170 ds3/e3 single-chip transceiver 160 of 233 bit 0: receive fifo reset (rfrst) ? when 0, the receive fifo will resume normal operations, however, data is discarded until a start of packet is received after ram power-up is completed. when 1, the receive fifo is emptied, any transfer in progress is halted, the fifo ram is powered down, the rhda bit is forced low, and all incoming data is discarded. register name: hdlc.rsr register description: hdlc receive status register register address: 0b4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rff rfe rhda bit 2: receive fifo full (rff) ? when 0, the receive fifo contains 255 or less bytes of data. when 1, the receive fifo is full. bit 1: receive fifo empty (rfe) ? when 0, the receive fifo contains at least one byte of data. when 1, the receive fifo is empty. bit 0: receive hdlc data available (rhda) ? when 0, the receive fifo contains less data than the receive hdlc data available level (rdal[4:0]). when 1, the receive fifo contains the same or more data than the receive hdlc data available level. register name: hdlc.rsrl register description: hdlc receive status register latched register address: 0b6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name rfol -- -- rpel rpsl rffl -- rhdal bit 7: receive fifo overflow latched (rfol) ? this bit is set when a receive fifo overflow condition occurs. an overflow condition results in a loss of data. bit 4: receive packet end latched (rpel) ? this bit is set when an end of packet is stored in the receive fifo. bit 3: receive packet start latched (rpsl) ? this bit is set when a start of packet is stored in the receive fifo. bit 2: receive fifo full latched (rffl) ? this bit is set when the rff bit transitions from 0 to 1. bit 0: receive hdlc data available latched (rhdal) ? this bit is set when the rhda bit transitions from 0 to 1.
ds3170 ds3/e3 single-chip transceiver 161 of 233 register name: hdlc.rsrie register description: hdlc receive status register interrupt enable register address: 0b8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rfoie -- -- rpeie rpsie rffie -- rhdaie default 0 0 0 0 0 0 0 0 bit 7: receive fifo overflow interrupt enable (rfoie) ? this bit enables an interrupt if the rfol bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: receive packet end interrupt enable (rpeie) ? this bit enables an interrupt if the rpel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: receive packet start interrupt enable (rpsie) ? this bit enables an interrupt if the rpsl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive fifo full interrupt enable (rffie) ? this bit enables an interrupt if the rffl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive hdlc data availa ble interrupt enable (rhdaie) ? this bit enables an interrupt if the rhdal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: hdlc.rfdr register description: hdlc receive fifo data register register address: 0bch bit # 15 14 13 12 11 10 9 8 name rfd7 rfd6 rfd5 rfd4 rfd3 rfd2 rfd1 rfd0 default x x x x x x x x bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rps2 rps1 rps0 rfdv default 0 0 0 0 x x x 0 note: the fifo data and status are updated when the receive fifo data (rfd[7:0]) is read (upper byte read). when this register is read eight bits at a time, a read of the lower byte will reflect the status of the next read of the upper byte, and reading the upper byte when rfdv=0 may result in a loss of data. bits 15 to 8: receive fifo data (rfd[7:0]) ? these eight bits are the packet data stored in the receive fifo. rfd[7] is the msb, and rfd[0] is the lsb. if bit reordering is disabled, rfd[0] is the first bit received, and rfd[7] is the last bit received. if bit reordering is enabled, rfd[7] is the first bit received, and rfd[0] is the last bit received.
ds3170 ds3/e3 single-chip transceiver 162 of 233 bits 3 to 1: receive packet status (rps[2:0]) ? these three bits indicate the status of the received packet and packet data. 000 = packet middle 001 = packet start. 010 = reserved 011 = reserved 100 = packet end: good packet 101 = packet end: fcs errored packet. 110 = packet end: invalid packet (a noninteger number of bytes). 111 = packet end: aborted packet. bit 0: receive fifo data valid (rfdv) ? when 0, the receive fifo data (rfd[7:0]) is invalid (the receive fifo is empty). when 1, the receive fifo data (rfd[7:0]) is valid.
ds3170 ds3/e3 single-chip transceiver 163 of 233 11.7 feac controller 11.7.1 feac transmit side register map the transmit side utilizes five registers. table 11-18. feac transmit side register map address register register description 0c0h feac.tcr feac transmit control register 0c2h feac.tfdr feac transmit data register 0c4h feac.tsr feac transmit status register 0c6h feac.tsrl feac transmit status register latched 0c8h feac.tsrie feac transmit status register interrupt enable 0cah -- unused 0cch -- unused 0ceh -- unused 11.7.1.1 register bit descriptions register name: feac.tcr register description: feac transmit control register register address: 0c0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- tfcl tfs1 tfs0 default 0 0 0 0 0 0 0 0 bit 2: transmit feac codeword load (tfcl) ? a 0 to 1 transition on this bit loads the transmit feac processor mode select bits (tfs[1:0]), and transmit feac codes (tfca[5:0] and tfcb[5:0]). note: whenever a feac codeword is loaded, any current feac codeword transmission in progress will be immediately halted, and the new feac codeword transmission will be started based on the new values for tfs[1:0], tfca[5:0], and tfcb[5:0].. bits 1 to 0: transmit feac codeword select (tfs[1:0]) ? these two bits control the transmit feac processor mode. the tfcl bit loads the mode set by this bit. 00 = idle (all ones) 01 = single code (send code tfca ten times and send all ones) 10 = dual code (send code tfca ten times, send code tfcb ten times, and send all ones) 11 = continuous code (send code tfca continuously)
ds3170 ds3/e3 single-chip transceiver 164 of 233 register name: feac.tfdr register description: transmit feac data register register address: 0c2h bit # 15 14 13 12 11 10 9 8 name -- -- tfcb5 tfcb4 tf cb3 tfcb2 tfcb1 tfcb0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfca5 tfca4 tf ca3 tfca2 tfca1 tfca0 default 0 0 0 0 0 0 0 0 bits 13 to 8: transmit feac code b (tfcb[5:0]) ? these six bits are the transmit feac code b data to be stored inserted into codeword b. tfcb[5] is the lsb (last bit transmitted) of the feac code (c[6]), and tfcb[0] is the msb (first bit transmitted) of the feac code (c[1]). bits 5 to 0: transmit feac code a (tfca[5:0]) ? these six bits are the transmit feac code a data to be stored inserted into codeword a. tfca[5] is the lsb (last bit transmitted) of the feac code (c[6]), and tfca[0] is the msb (first bit transmitted) of the feac code (c[1]). register name: feac.tsr register description: feac transmit status register register address: 0c4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfi bit 0: transmit feac idle (tfi) ? when 0, the transmit feac processor is sending a feac codeword. when 1, the transmit feac processor is sending an idle signal (all ones). register name: feac.tsrl register description: feac transmit status register latched register address: 0c6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfil bit 0: transmit feac idle latched (tfil) ? this bit is set when the tfi bit transitions from 0 to 1. note: immediately after a reset, this bit will be set to one.
ds3170 ds3/e3 single-chip transceiver 165 of 233 register name: feac.tsrie register description: feac transmit status register interrupt enable register address: 0c8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- tfiie default 0 0 0 0 0 0 0 0 bit 0: transmit feac idle interrupt enable (tfiie) ? this bit enables an interrupt if the tfil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled 11.7.2 feac receive side register map the receive side utilizes five registers. table 11-19. feac receive side register map address register register description 0d0h feac.rcr feac receive control register 0d2h -- unused 0d4h feac.rsr feac receive status register 0d6h feac.rsrl feac receive status register latched 0d8h feac.rsrie feac receive status register interrupt enable 0dah -- unused 0dch feac.rfdr feac receive fifo data register 0deh -- unused 11.7.2.1 register bit descriptions register name: feac.rcr register description: feac receive control register register address: 0d0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 1 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- -- -- rfr default 0 0 0 0 0 0 0 0 bit 0: receive feac reset (rfr) ?when 0, the receive feac processor and receive feac fifo will resume normal operations. when 1, the receive feac controller is reset. the feac fifo is emptied, any transfer in progress is halted, and all incoming data is discarded.
ds3170 ds3/e3 single-chip transceiver 166 of 233 register name: feac.rsr register description: feac receive status register register address: 0d4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rffe -- rfcd rfi bit 3: receive feac fifo empty (rffe) ? when 0, the receive fifo contains at least one code. when 1, the receive fifo is empty. bit 1: receive feac codeword detect (rfcd) ? when 0, the receive feac processor is not currently receiving a feac codeword. when 1, the receive feac processor is currently receiving a feac codeword. bit 0: receive feac idle (rfi) ? when 0, the receive feac processor is not receiving a feac idle signal (all ones). when 1, the receive feac processor is receiving a feac idle signal. register name: feac.rsrl register description: feac receive status register latched register address: 0d6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rffol rfcdl rfil bit 2: receive feac fifo overflow latched (rffol) ? this bit is set when a receive fifo overflow condition occurs. an overflow condition results in a loss of data. bit 1: receive feac codeword detect latched (rfcdl) ? this bit is set when the rfcd bit transitions from 0 to 1. bit 0: receive feac idle latched (rfil) ? this bit is set when the rfi bit transitions from 0 to 1. note: immediately after a reset, this bit will be set to one. register name: feac.rsrie register description: feac receive status register interrupt enable register address: 0d8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rffoie rfcdie rfiie default 0 0 0 0 0 0 0 0 bit 2: receive feac fifo overflow interrupt enable (rffoie) ? this bit enables an interrupt if the rffol bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 167 of 233 bit 1: receive feac codeword de tect interrupt enable (rfcdie) ? this bit enables an interrupt if the rfcdl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive feac idle interrupt enable (rfiie) ? this bit enables an interrupt if the rfil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: feac.rfdr register description: feac receive fifo data register register address: 0dch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rffi -- rff5 rff4 rff3 rff2 rff1 rff0 default 0 0 0 0 0 0 0 0 bit 7: receive feac fifo data invalid (rffi) ? when 0, the receive fifo data (rff[5:0]) is valid. when 1, the receive fifo data is invalid (receive fifo is empty). bits 5 to 0: receive feac fifo data (rff[5:0]) ? these six bits are the feac code data stored in the receive fifo. rff[5] is the lsb (last bit received) of the feac code (c[6]), and rff[0] is the msb (first bit received) of the feac code (c[1]). the receive feac fifo data (rff[5:0]) is updated when it is read (lower byte read).
ds3170 ds3/e3 single-chip transceiver 168 of 233 11.8 trail trace 11.8.1 trail trace transmit side the transmit side utilizes three registers. table 11-20. transmit side trail trace register map address register register description 0e8h tt.tcr trail trace transmit control register 0eah tt.ttiar trail trace transmit identifier address register 0ech tt.tir trail trace transmit identifier register 0eeh -- unused 11.8.1.1 register bit descriptions register name: tt.tcr register description: trail trace transmit control register register address: 0e8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- reserved tmad tidle tdie tbre default 0 0 0 0 0 0 0 0 bit 3: transmit multiframe alignment insertion disable (tmad) ? when 0, multiframe alignment signal (mas) insertion is enabled, and the first bit transmitted of each trail trace byte is overwritten with an mas bit. when 1, mas insertion is disabled, and the trail trace bytes from the transmit data storage are output without being modified. bit 2: transmit trail trace identifier idle (tidle) ? when 0, the programmed transmit trail trace identifier will be transmitted. when 1, all zeros will be transmitted. bit 1: transmit data inversion enable (tdie) ? when 0, the outgoing data from trail trace processing is output directly. when 1, the outgoing data from trail trace processing is inverted before being output. bit 0: transmit bit reordering enable (tbre) ? when 0, bit reordering is disabled (the first bit transmitted is the msb tt.tir .ttd[7] of the byte). when 1, bit reordering is enabled (the first bit transmitted is the lsb tt.tir .ttd[0] of the byte).
ds3170 ds3/e3 single-chip transceiver 169 of 233 register name: tt.ttiar register description: trail trace transmit identifier address register register address: 0eah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved ttia3 ttia2 ttia1 ttia0 default 0 0 0 0 0 0 0 0 bits 3 to 0: transmit trail trace identifier address (ttia[3:0]) ? these four bits indicate the transmit trail trace identifier byte to be read/written by the next memory access. address 0h indicates the first byte of the transmit trail trace identifier. note: the value of these bits increments with each transmit trail trace identifier memory access (when these bits are fh, a memory access will return them to 0h). register name: tt.tir register description: trail trace transmit identifier register register address: 0ech bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name ttd7 ttd6 ttd5 ttd4 ttd3 ttd2 ttd1 ttd0 default 0 0 0 0 0 0 0 0 bits 7 to 0: transmit trail trace identifier data (ttd[7:0]) ? these eight bits are the transmit trail trace identifier data. the transmit trail trace identifier address will be incremented whenever these bits are read or written (when address location fh is read or written, the address will return to 0h). 11.8.2 trail trace receive side register map the receive side utilizes seven registers. table 11-21. trail trace receive side register map address register register description 0f0h tt.rcr trail trace receive control register 0f2h tt.rtiar trail trace receive identifier address register 0f4h tt.rsr trail trace receive status register 0f6h tt.rsrl trail trace receive status register latched 0f8h tt.rsrie trail trace receive status register interrupt enable 0fah -- unused 0fch tt.rir trail trace receive identifier register 0feh tt.eir trail trace expected identifier register
ds3170 ds3/e3 single-chip transceiver 170 of 233 11.8.2.1 register bit descriptions register name: tt.rcr register description: trail trace receive control register register address: 0f0h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved rmad retce rdie rbre default 0 0 0 0 0 0 0 0 bit 3: receive multiframe alignment disable (rmad) ? when 0, multiframe alignment is performed. when 1, multiframe alignment is disabled and the trail trace bytes are stored starting with a random byte. bit 2: receive expected trail trace comparison enable (retce) ? when 0, expected trail trace comparison is disabled. when 1, expected trail trace comparison is performed. note: when the rmad bit is one, expected trail trace comparison is disabled regardless of the setting of this bit. bit 1: receive data inversion enable (rdie) ? when 0, the incoming data is directly passed on for trail trace processing. when 1, the incoming data is inverted before being passed on for trail trace processing. bit 0: receive bit reordering enable (rbre) ? when 0, bit reordering is disabled (the first bit received is the msb tt.rir .rtd[7] of the byte). when 1, bit reordering is enabled (the first bit received is the lsb tt.rir .rtd[0] of the byte). register name: tt.rtiar register description: trail trace receive identifier address register register address: 0f2h bit # 15 14 13 12 11 10 9 8 name -- -- reserved reserved etia3 etia2 etia1 etia0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved rtia3 rtia2 rtia1 rtia0 default 0 0 0 0 0 0 0 0 bits 11 to 8: expected trail trace identifier address (etia[3:0]) ? these four bits indicate the expected trail trace identifier byte to be read/written by the next memory access. address 0h indicates the first byte of the expected trail trace identifier. note: the value of these bits increments with each expected trail trace identifier memory access (when these bits are fh, a memory access will return them to 0h). bits 3 to 0: receive trail trace identifier address (rtia[3:0]) ? these four bits indicate the receive trail trace identifier byte to be read by the next memory access. address 0h indicates the first byte of the receive trail trace identifier. note: the value of these bits increments with each received trail trace identifier memory access (when these bits are fh, a memory access will return them to 0h).
ds3170 ds3/e3 single-chip transceiver 171 of 233 register name: tt.rsr register description: trail trace receive status register register address: 0f4h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- -- rtim rtiu ridl bit 2: receive trail trace identifier mismatch (rtim) 0 = received and expected trail trace identifiers match. 1 = received and expected trail trace identifiers do not match; trail trace identifier mismatch (tim) declared. bit 1: receive trail trace identifier unstable (rtiu) 0 = received trail trace identifier is not unstable 1 = received trail trace identifier is in an unstable condition (tiu); tiu is declared when eight consecutive trail trace identifiers are received that do not match either the receive trail trace identifier or the previously stored current trail trace identifier. bit 0: receive trail trace identifier idle (ridl) 0 = received trail trace identifier is not in idle condition. 1 = received trail trace identifier is in idle condition. idle condition is declared upon the reception of an all zeros trail trace identifier five consecutive times. register name: tt.rsrl register description: trail trace receive status register latched register address: 0f6h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rticl rtiml rtiul ridll bit 3: receive trail trace identifier change latched (rticl) ? this bit is set when the receive trail trace identifier is updated. bit 2: receive trail trace identifier mismatch latched (rtiml) ? this bit is set when the tt.rsr .rtim bit transitions from 0 to 1. bit 1: receive trail trace identifier unstable latched (rtiul) ? this bit is set when the tt.rsr .rtiu bit transitions from 0 to 1. bit 0: receive trail trace identifier idle latched (ridll) ? this bit is set when the tt.rsr .ridl bit transitions from 0 to 1.
ds3170 ds3/e3 single-chip transceiver 172 of 233 register name: tt.rsrie register description: trail trace receive status register interrupt enable register address: 0f8h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- rticie rtimie rtiuie ridlie default 0 0 0 0 0 0 0 0 bit 3: receive trail trace identifier change interrupt enable (rticie) ? this bit enables an interrupt if the tt.rsrl .rticl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: receive trail trace identifier mismatch interrupt enable (rtimie) ? this bit enables an interrupt if the tt.rsrl .rtiml bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: receive trail trace identifier unstable interrupt enable (rtiuie) ? this bit enables an interrupt if the tt.rsrl .rtiul bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: receive trail trace identifier idle interrupt enable (ridlie) ? this bit enables an interrupt if the tt.rsrl .ridll bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: tt.rir register description: trail trace receive identifier register register address: 0fch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rtd7 rtd6 rtd5 rtd4 rtd3 rtd2 rtd1 rtd0 default 0 0 0 0 0 0 0 0 bits 7 to 0: receive trail trace identifier data (rtd[7:0]) ? these eight bits are the receive trail trace identifier data. the receive trail trace identifier address will be incremented whenever these bits are read (when byte fh is read, the address will return to 0h).
ds3170 ds3/e3 single-chip transceiver 173 of 233 register name: tt.eir register description: trail trace expected identifier register register address: 0feh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name etd7 etd6 etd5 etd4 etd3 etd2 etd1 etd0 default 0 0 0 0 0 0 0 0 bits 7 to 0: expected trail trace identifier data (etd[7:0]) ? these eight bits are the expected trail trace identifier data. the expected trail trace identifier address will be incremented whenever these bits are read or written (when byte fh is read or written, the address will return to 0h).
ds3170 ds3/e3 single-chip transceiver 174 of 233 11.9 ds3/e3 framer 11.9.1 transmit ds3 the transmit ds3 utilizes two registers. table 11-22. transmit ds3 framer register map address register register description 118h t3.tcr t3 transmit control register 11ah t3.teir t3 transmit error insertion register 11ch -- reserved 11eh -- reserved 11.9.1.1 register bit descriptions register name: t3.tcr register description: t3 transmit control register register address: 118h bit # 15 14 13 12 11 10 9 8 name -- -- -- pbge tidle cbgd -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfebe afebed trdi ardid tfgd tais default 0 0 0 0 0 0 0 0 bit 12: p-bit generation enable (pbge) ? when 0, if transmit frame generation is disabled, transmit frame processor p-bit generation is disabled. the p-bit overhead periods in the incoming t3 signal will be passed through to error insertion. when 1, transmit frame processor p-bit generation is enabled. the p-bit overhead periods in the incoming t3 signal will be overwritten even if transmit frame generation is disabled. bit 11: transmit ds3 idle signal (tidle) ? 0 = transmit ds3 idle signal is not inserted 1 = transmit ds3 idle signal is inserted into the ds3 frame. bit 10: c-bit genera tion disable (cbgd) (m23 mode only) ? when 0, transmit frame processor c-bit generation is enabled. the c-bit overhead periods in the incoming m23 ds3 signal will be overwritten with zeros. when 1, transmit frame processor c-bit generation is dis abled. the c-bit overhead periods in the incoming m23 ds3 signal will be treated as payload, and passed through to overhead insertion. this bit is ignored in c-bit ds3 mode. bit 5: transmit febe error (tfebe) ? when automatic far-end block error generation is defeated (afebed = 1), the inverse of this bit is inserted into the bits c 41 , c 42 , and c 43 . note: a far-end block error value of zero (tfebe=1) indicates a far-end block error. this bit is ignored in m23 ds3 mode. bit 4: automatic febe defeat (afebed) ? when 0, a far-end block error is automatically generated based upon the receive c-bit parity errors or framing errors. when 1, a far-end block error is inserted from the register bit tfebe. this bit is ignored in m23 ds3 mode. bit 3: transmit rdi alarm (trdi) ? when automatic rdi generation is defeated (ardid = 1), the inverse of this bit is inserted into the x-bits (x 1 and x 2 ). note: an rdi value of zero (trdi=1) indicates an alarm. bit 2: automatic rdi defeat (ardid) ? when 0, the rdi is automatically generated based received ds3 alarms. when 1, the rdi is inserted from the register bit trdi.
ds3170 ds3/e3 single-chip transceiver 175 of 233 bit 1: transmit frame generation disabled (tfgd) ? 0 = transmit frame generation is enabled 1 = transmit frame generation is disabled; ds3 overhead positions in the incoming ds3 payload will be passed through to error insertion. note: frame generation will still overwrite the p-bits if pbge = 1. also, the ds3 overhead periods can still be overwritten by error insertion, overhead insertion, or ais/idle generation. bit 0: transmit alarm indication signal (tais) ? 0 = transmit alarm indication signal is not inserted 1 = transmit alarm indication signal is inserted into data stream payload register name: t3.teir register description: t3 transmit error insertion register register address: 11ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- ccpeie cpei cfbeie fbei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved cpeie pei feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bit 11: continuous c-bit parity error insertion enable (ccpeie) ? when 0, single c-bit parity error insertion is enabled. when 1, continuous c-bit parity error insertion is enabled, and c-bit parity errors will be transmitted continuously if cpei is high. bit 10: c-bit parity error insertion enable (cpei) ? when 0, c-bit parity error insertion is disabled. when 1, c-bit parity error insertion is enabled. bit 9: continuous far-end block error insertion enable (cfbeie) ? when 0, single far-end block error insertion is enabled. when 1, continuous far-end block error insertion is enabled, and far-end block errors will be transmitted continuously if fbei is high. bit 8: far-end block error insertion enable (fbei) ? when 0, far-end block error insertion is disabled. when 1, far-end block error insertion is enabled. bit 6: continuous p-bit parity error insertion enable (cpeie) ? when 0, single p-bit parity error insertion is enabled. when 1, continuous p-bit parity error insertion is enabled, and p-bit parity errors will be transmitted continuously if pei is high. bit 5: p-bit parity error insertion enable (pei) ? when 0, p-bit parity error insertion is disabled. when 1, p-bit parity error insertion is enabled. bits 4 to 3: framing error insertion control (feic[1:0]) ? these two bits control the framing error event to be inserted. 00 = f-bit error. 01 = m-bit error. 10 = sef error. 11 = oomf error. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted.
ds3170 ds3/e3 single-chip transceiver 176 of 233 bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted. 11.9.2 receive ds3 register map the receive ds3 utilizes eleven registers. two registers are shared for c-bit and m23 ds3 modes. the m23 ds3 mode does not use the rfeber or rcpecr count registers. table 11-23. receive ds3 framer register map address register register description 120h t3.rcr t3 receive control register 122h -- reserved 124h t3.rsr1 t3 receive status register #1 126h t3.rsr2 t3 receive status register #2 128h t3.rsrl1 t3 receive status register latched #1 12ah t3.rsrl2 t3 receive status register latched #2 12ch t3.rsrie1 t3 receive status register interrupt enable #1 12eh t3.rsrie2 t3 receive status register interrupt enable #2 130h -- reserved 132h -- reserved 134h t3.rfecr t3 receive framing error count register 136h t3.rpecr t3 receive p-bit parity error count register 138h t3.rfbecr t3 receive far-end block error count register 13ah t3.rcpecr t3 receive c-bit parity error count register 13ch -- unused 13eh -- unused 11.9.2.1 register bit descriptions register name: t3.rcr register description: t3 receive control register register address: 120h bit # 15 14 13 12 11 10 9 8 name reserved covhd maod md aisi aaisd ecc fecc1 fecc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name raile raild raiod raiad romd lip1 lip0 frsync default 0 0 0 0 0 0 0 0 bit 14: c-bit overhead masking disable (covhd) ? when 0, the c-bit positions will be marked as overhead (rden=0). when 1, the c-bit positions will be marked as data (rden=1). this bit is ignored in c-bit ds3 mode or when the romd bit is set to one. bit 13: multiframe alignment oof disable (maod) ? when 0, an oof condition is declared whenever an oomf or sef condition is declared. when 1, an oof condition is declared only when an sef condition is declared. bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled.
ds3170 ds3/e3 single-chip transceiver 177 of 233 bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of an los, oof, or ais condition will cause downstream ais to be inserted. when 1, the presence of an los, oof, or ais condition will not cause downstream ais to be inserted. bit 10: error count control (ecc) ? when 0, framing errors, p-bit parity errors, c-bit parity errors, and far-end block errors will not be counted if an oof or ais condition is present. p-bit parity errors, c-bit parity errors, and far-end block errors will also not be counted during the ds3 frame in which an oof condition is terminated, and the next ds3 frame. when 1, framing errors, p-bit parity errors, c-bit parity errors, and far-end block errors will be counted regardless of the presence of an oof or ais condition. bits 9 to 8: framing error count control (fecc[1:0]) ? these two bits control the type of framing error events that are counted. 00 = count oof occurrences (counted regardless of the setting of the ecc bit). 01 = count m bit and f bit errors. 10 = count only f bit errors. 11 = count only m bit errors. bit 7: receive alarm indication on lof enable (raile) ? when 0, an lof condition does not affect the receive alarm indication signal (rai). when 1, an lof condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. bit 6: receive alarm indication on los disable (raild) ? when 0, an los condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. when 1, an los condition does not affect the rai signal. bit 5: receive alarm indication on sef disable (raiod) ? when 0, an sef condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. when 1, an sef condition does not affect the rai signal. bit 4: receive alarm indication on ais disable (raiad) ? when 0, an ais condition will cause the transmit ds3 x-bits to be set to zero if transmit automatic rdi is enabled. when 1, an ais condition does not affect the rai signal. bit 3: receive overhead masking disable (romd) ? when 0, the ds3 overhead positions in the outgoing ds3 payload will be marked as overhead by rden. when 1, the ds3 overhead positions in the outgoing ds3 payload will be marked as data by rden. when this bit is set to one, the covhd bit is ignored. bits 2 to 1: lof integration period (lip[1:0]) ? these two bits determine the oof integration period for declaring lof. 00 = oof is integrated for 3 ms before declaring lof 01 = oof is integrated for 2 ms before declaring lof 10 = oof is integrated for 1 ms before declaring lof. 11 = lof is declared at the same time as oof. bit 0: force framer resynchronization (frsync) ? a 0 to 1 transition forces an oof, sef, and oomf condition. the bit must be cleared and set to one again to force another resynchronization note: the oomf condition is created by failing the most recent four data path m-bit checks. register name: t3.rsr1 register description: t3 receive status register #1 register address: 124h bit # 15 14 13 12 11 10 9 8 name reserved reserved -- reserved t3fm aic idle rua1 bit # 7 6 5 4 3 2 1 0 name oomf sef -- lof rdi ais oof los bit 11: t3 framing format mismatch (t3fm) ? this bit indicates the ds3 framer is programmed for a framing format (c-bit or m23) that is different than the format indicated by the aic bit in the incoming ds3 signal.
ds3170 ds3/e3 single-chip transceiver 178 of 233 bit 10: application identification channel (aic) ? this bit indicates the current state of the application identification channel (aic) from the c 11 bit. a one indicates c-bit format and a zero indicates m23 format. bit 9: ds3 idle signal (idle) ? when 0, the receive frame processor is not in a ds3 idle signal (idle) condition. when 1, the receive frame processor is in an idle condition. bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 7: out of multiframe (oomf) ? when 0, the receive frame processor is not in an out of multiframe (oomf) condition. when 1, the receive frame processor is in an oomf condition. bit 6: severely errored frame (sef) ? when 0, the receive frame processor is not in a severely errored frame (sef) condition. when 1, the receive frame processor is in an sef condition. bit 4: loss of frame (lof) ? when 0, the receive framer is not in a loss of frame (lof) condition. when 1, the receive frame processor is in an lof condition. bit 3: remote defect indication (rdi) ? this bit indicates the current state of the remote defect indication (rdi) bit 2: alarm indication signal (ais) ? when 0, the receive frame processor is not in an alarm indication signal (ais) condition. when 1, the receive frame processor is in an ais condition. bit 1: out of frame (oof) ? when 0, the receive framer is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. bit 0: loss of signal (los) ? when 0, the receive framer is not in a loss of signal (los) condition. when 1, the receive framer is in an los condition. register name: t3.rsr2 register description: t3 receive status register #2 register address: 126h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- cpec fbec pec fec bit 3: c-bit parity error count (cpec) ? when 0, the c-bit parity error count is zero. when 1, the c-bit parity error count is one or more. this bit is set to zero in m23 ds3 mode. bit 2: remote error indication count (fbec) ? when 0, the remote error indication count is zero. when 1, the remote error indication count is one or more. this bit is set to zero in m23 ds3 mode. bit 1: p-bit parity error count (pec) ? when 0, the p-bit parity error count is zero. when 1, the p-bit parity error count is one or more. bit 0: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more. the type of framing error event counted is determined by t3.rcr .fecc[1:0]
ds3170 ds3/e3 single-chip transceiver 179 of 233 register name: t3.rsrl1 register description: t3 receive status register latched #1 register address: 128h bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserved t3fml aicl idlel rua1l bit # 7 6 5 4 3 2 1 0 name oomfl sefl cofal lofl rail aisl oofl losl bit 11: t3 framing format mismatch latched (t3fml) ? this bit is set when the t3fm bit transitions from zero to one. bit 10: application identification channel change latched (aicl) ? this bit is set when the aic bit changes state. bit 9: ds3 idle signal change latched (idlel) ? this bit is set when the idle bit changes state. bit 8: receive unframed all 1?s change latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 7: out of multiframe change latched (oomfl) ? this bit is set when the oomf bit changes state. bit 6: severely errored frame change latched (sefl) ? this bit is set when the sef bit changes state. bit 5: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new ds3 frame alignment that is different from the previous ds3 frame alignment. bit 4: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 3: remote defect indication change latched (rdil) ? this bit is set when the rdi bit changes state. bit 2: alarm indication signal change latched (aisl) ? this bit is set when the ais bit changes state. bit 1: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state. register name: t3.rsrl2 register description: t3 receive status register latched #2 register address: 12ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- cpel fbel pel fel bit # 7 6 5 4 3 2 1 0 name -- -- -- -- cpecl fbecl pecl fecl bit 11: c-bit parity error latched (cpel) ? this bit is set when a c-bit parity error is detected. this bit is set to zero in m23 ds3 mode. bit 10: remote error indication latched (fbel) ? this bit is set when a far-end block error is detected. this bit is set to zero in m23 ds3 mode. bit 9: p-bit parity error latched (pel) ? this bit is set when a p-bit parity error is detected. bit 8: framing error latched (fel) ? this bit is set when a framing error is detected. the type of framing error event that causes this bit to be set is determined by t3.rcr .fecc[1:0] bit 3: c-bit parity error count latched (cpecl) ? this bit is set when the cpec bit transitions from zero to one. this bit is set to zero in m23 ds3 mode.
ds3170 ds3/e3 single-chip transceiver 180 of 233 bit 2: remote error indication count latched (fbecl) ? this bit is set when the fbec bit transitions from zero to one. this bit is set to zero in m23 ds3 mode. bit 1: p-bit parity error count latched (pecl) ? this bit is set when the pec bit transitions from zero to one. bit 0: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one. register name: t3.rsrie1 register description: t3 receive status register interrupt enable #1 register address: 12ch bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved re served t3fmie aicie idleie rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name oomfie sefie cofaie lofie raiie aisie oofie losie default 0 0 0 0 0 0 0 0 bit 11: t3 framing format mismatch interrupt enable (t3fmie) ? this bit enables an interrupt if the t3fml bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: application identification channel interrupt enable (aicie) ? this bit enables an interrupt if the aicl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: ds3 idle signal change interrupt enable (idleie) ? this bit enables an interrupt if the idlel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: out of multiframe interrupt enable (oomfie) ? this bit enables an interrupt if the oomfl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: severely errored frame interrupt enable (sefie) ? this bit enables an interrupt if the sefl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 181 of 233 bit 3: remote defect indication interrupt enable (rdiie) ? this bit enables an interrupt if the rdil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: alarm indication signal interrupt enable (aisie) ? this bit enables an interrupt if the aisl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: t3.rsrie2 register description: t3 receive status register interrupt enable #2 register address: 12eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- cpeie fbeie peie feie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- cpecie fbecie pecie fecie default 0 0 0 0 0 0 0 0 bit 11: c-bit parity error interrupt enable (cpeie) ? this bit enables an interrupt if the cpel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: remote error interrupt enable (fbeie) ? this bit enables an interrupt if the fbel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: p-bit parity error interrupt enable (peie) ? this bit enables an interrupt if the pel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: c-bit parity error count interrupt enable (cpecie) ? this bit enables an interrupt if the cpecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 182 of 233 bit 2: far-end block error count interrupt enable (fbecie) ? this bit enables an interrupt if the fbecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: p-bit parity error count interrupt enable (pecie) ? this bit enables an interrupt if the pecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: t3.rfecr register description: t3 receive framing error count register register address: 134h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these sixteen bits indicate the number of framing error events on the incoming ds3 data stream. this register is updated via the pmu signal (see section 9.4.5 ) register name: t3.rpecr register description: t3 receive p-bit parity error count register register address: 136h bit # 15 14 13 12 11 10 9 8 name pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: p-bit parity error count (pe[15:0]) ? these sixteen bits indicate the number of p-bit parity errors detected on the incoming ds3 data stream. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 183 of 233 register name: t3.rfbecr register description: t3 receive far-end block error count register register address: 138h bit # 15 14 13 12 11 10 9 8 name fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: far-end block error count (fbe[15:0]) ? these sixteen bits indicate the number of far-end block errors detected on the incoming ds3 data stream. the associated counter will not increment in m23 ds3 mode. this register is updated via the pmu signal (see section 9.4.5 ) register name: t3.rcpecr register description: t3 receive c-bit parity error count register register address: 13ah bit # 15 14 13 12 11 10 9 8 name cpe15 cpe14 cpe13 cpe12 cpe11 cpe10 cpe9 cpe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name cpe7 cpe6 cpe5 cpe4 cpe3 cpe2 cpe1 cpe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: c-bit parity error count (cpe[15:0]) ? these sixteen bits indicate the number of c-bit parity errors detected on the incoming ds3 data stream. the associated counter will not increment in m23 ds3 mode. this register is updated via the pmu signal (see section 9.4.5 ) 11.9.3 transmit g.751 e3 the transmit g.751 e3 utilizes two registers. 11.9.3.1 register map table 11-24. transmit g.751 e3 framer register map address register register description 118h e3g751.tcr e3 g.751 transmit control register 11ah e3g751.teir e3 g.751 transmit error insertion register 11ch -- reserved 11eh -- reserved
ds3170 ds3/e3 single-chip transceiver 184 of 233 11.9.3.2 register bit descriptions register name: e3g751.tcr register description: e3 g.751 transmit control register register address: 118h bit # 15 14 13 12 11 10 9 8 name reserved -- -- reserved reserved reserved tnbc1 tnbc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- reserved reserved tabc1 tabc0 tfgd tais default 0 0 0 0 0 0 0 0 bits 9 to 8: transmit n bit control (tnbc[1:0]) ? these two bits control the source of the n bit. 00 = 1 01 = transmit data from hdlc controller. 10 = transmit data from feac controller. 11 = 0 note: if tnbc[1:0] is 10 and tabc[1:0] is 01, both the n bit and a bit will carry the same transmit feac controller (one bit per frame period), however, the n bit and a bit in the same frame may or may not be equal. bits 3 to 2: transmit a bit control (tabc[1:0]) ? these two bits control the source of the a bit. 00 = automatically generated based upon received e3 alarms. 01 = transmit from the feac controller. 10 = 0 11 = 1 note: if tabc[1:0] is 01 and tnbc[1:0] is 10, both the a bit and n bit will carry the same transmit feac controller (one bit per frame period), however, the a bit and n bit in the same frame may or may not be equal. bit 1: transmit frame generation disable (tfgd) ? 0 = transmit frame generation is enabled 1 = transmit frame generation is disabled; e3 overhead positions in the incoming e3 payload will be passed through to error insertion. note: the e3 overhead periods can still be overwritten by by error insertion, overhead insertion, or ais generation. bit 0: transmit alarm indication signal (tais) ? when 0, the normal signal is transmitted. when 1, the output e3 data stream is forced to all ones (ais).
ds3170 ds3/e3 single-chip transceiver 185 of 233 register name: e3g751.teir register description: e3 g.751 transmit error insertion register register address: 11ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved reserved default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name reserved reserved reserv ed feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bits 4 to 3: framing error insert control (feic[1:0]) ? these two bits control the framing error event to be inserted. 00 = single bit error in one frame. 01 = word error in one frame. 10 = single bit error in four consecutive frames. 11 = word error in four consecutive frames. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3170 ds3/e3 single-chip transceiver 186 of 233 11.9.4 receive g.751 e3 register map the receive g.751 e3 utilizes eight registers. table 11-25. receive g.751 e3 framer register map address register register description 120h e3g751.rcr e3 g.751 receive control register 122h -- reserved 124h e3g751.rsr1 e3 g.751 receive status register #1 126h e3g751.rsr2 e3 g.751 receive status register #2 128h e3g751.rsrl1 e3 g.751 receive status register latched #1 12ah e3g751.rsrl2 e3 g.751 receive status register latched #2 12ch e3g751.rsrie1 e3 g.751 receive status register interrupt enable #1 12eh e3g751.rsrie2 e3 g.751 receive status register interrupt enable #2 130h -- reserved 132h -- reserved 134h e3g751.rfecr e3 g.751 receive framing error count register 136h -- reserved 138h -- reserved 13ah -- reserved 13ch -- unused 13eh -- unused 11.9.4.1 register bit descriptions register name: e3g751.rcr register description: e3 g.751 receive control register register address: 120h bit # 15 14 13 12 11 10 9 8 name reserved reserved dls mdaisi aaisd ecc fecc1 fecc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name raile raild raiod raiad romd lip1 lip0 frsync default 0 0 0 0 0 0 0 0 bit 13: receive feac data link source (dls) ? when 0, the receive feac controller will be sourced from the n bit. when 1, the receive feac controller will be sourced from the a bit. bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled. bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of an los, oof, or ais condition will cause downstream ais to be inserted. when 1, the presence of an los, oof, or ais condition will not cause downstream ais to be inserted. bit 10: error count control (ecc) ? when 0, framing errors will not be counted if an oof or ais condition is present. when 1, framing errors will be counted regardless of the presence of an oof or ais condition.
ds3170 ds3/e3 single-chip transceiver 187 of 233 bits 9 to 8: framing error count control (fecc[1:0]) ? these two bits control the type of framing error events that are counted. 00 = count oof occurrences (counted regardless of the setting of the ecc bit).. 01 = count each bit error in the fas (up to 10 per frame). 10 = count frame alignment signal (fas) errors (up to one per frame). 11 = reserved bit 7: receive alarm indication on lof enable (raile) ? when 0, an lof condition does not affect the receive alarm indication signal (rai). when 1, an lof condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. bit 6: receive alarm indication on los disable (raild) ? when 0, an los condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. when 1, an los condition does not affect the rai signal. bit 5: receive alarm indication on oof disable (raiod) ? when 0, an oof condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. when 1, an oof condition does not affect the rai signal. bit 4: receive alarm indication on ais disable (raiad) ? when 0, an ais condition will cause the transmit e3 a bit to be set to one if transmit automatic rai is enabled. when 1, an ais condition does not affect the rai signal. bit 3: receive overhead masking disable (romd) ? when 0, the e3 overhead positions in the outgoing e3 payload will be marked as overhead by rden. when 1, the e3 overhead positions in the outgoing e3 payload will be marked as data by rden. bits 2 to 1: lof integration period (lip[1:0]) ? these two bits determine the oof integration period for declaring lof. 00 = oof is integrated for 3 ms before declaring lof 01 = oof is integrated for 2 ms before declaring lof. 10 = oof is integrated for 1 ms before declaring lof 11 = lof is declared at the same time as oof bit 0: force framer resynchronization (frsync) ? a 0 to 1 transition forces an oof condition at the fas check. this bit must be cleared and set to one again to force another resynchronization. note: the oof condition is created by failing the most recent four data path fas checks. register name: e3g751.rsr1 register description: e3 g.751 receive status register #1 register address: 124h bit # 15 14 13 12 11 10 9 8 name reserved reserved -- reserved reserved reserved reserved rua1 bit # 7 6 5 4 3 2 1 0 name rab rnb -- lof rdi ais oof los bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 7: receive a bit (rab) ? this bit is the integrated a bit extracted from the e3 frame. bit 6: receive n bit (rnb) ? this bit is the integrated n bit extracted from the e3 frame. bit 4: loss of frame (lof) ? when 0, the receive frame processor is not in a loss of frame (lof) condition. when 1, the receive frame processor is in an lof condition. bit 3: remote alarm indication (rdi) ? this bit indicates the current state of the remote alarm indication (rdi). bit 2: alarm indication signal (ais) ? when 0, the receive frame processor is not in an alarm indication signal (ais) condition. when 1, the receive frame processor is in an ais condition.
ds3170 ds3/e3 single-chip transceiver 188 of 233 bit 1: out of frame (oof) ? when 0, the receive frame processor is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. bit 0: loss of signal (los) ? when 0, the receive loss of signal (los) input (rlos) is low. when 1, rlos is high. register name: e3g751.rsr2 register description: e3 g.751 receive status register #2 register address: 126h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved reserved reserved fec bit 0: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more. register name: e3g751.rsrl1 register description: e3 g.751 receive status register latched #1 register address: 128h bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserved reserved reserved reserved rua1l bit # 7 6 5 4 3 2 1 0 name acl ncl cofal lofl rdil aisl oofl losl bit 8: receive unframed all 1?s change latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 7: a bit change latched (acl) ? this bit is set when the rab bit changes state. bit 6: n bit change latched (ncl) ? this bit is set when the rnb bit changes state. bit 5: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new frame alignment that is different from the previous frame alignment. bit 4: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 3: remote alarm indication change latched (rdil) ? this bit is set when the rdi bit changes state. bit 2: alarm indication signal change latched (aisl) ? this bit is set when the ais bit changes state. bit 1: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state.
ds3170 ds3/e3 single-chip transceiver 189 of 233 register name: e3g751.rsrl2 register description: e3 g.751 receive status register latched #2 register address: 12ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved fel bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved reserved reserved fecl bit 8: framing error latched (fel) ? this bit is set when a framing error is detected. bit 0: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one. register name: e3g751.rsrie1 register description: e3 g.751 receive status register interrupt enable #1 register address: 12ch bit # 15 14 13 12 11 10 9 8 name reserved reserved reserved reserv ed reserved reserved reserved rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name acie ncie cofaie lofie rdiie aisie oofie losie default 0 0 0 0 0 0 0 0 bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: a bit change interrupt enable (acie) ? this bit enables an interrupt if the acl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: n bit change interrupt enable (ncie) ? this bit enables an interrupt if the ncl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. set. 0 = interrupt disabled 1 = interrupt enabled bit 4: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 3: remote alarm indication interrupt enable (rdiie) ? this bit enables an interrupt if the rdil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 190 of 233 bit 2: alarm indication signal interrupt enable (aisie) ? this bit enables an interrupt if the aisl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g751.rsrie2 register description: e3 g.751 receive status register interrupt enable #2 register address: 12eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved reserved feie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved reserved reserved fecie default 0 0 0 0 0 0 0 0 bit 8: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g751.rfecr register description: e3 g.751 receive framing error count register register address: 134h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these sixteen bits indicate the number of framing error events on the incoming e3 data stream. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 191 of 233 11.9.5 transmit g.832 e3 register map the transmit g.832 e3 utilizes four registers. table 11-26. transmit g.832 e3 framer register map address register register description 118h e3g832.tcr e3 g.832 transmit control register 11ah e3g832.teir e3 g.832 transmit error insertion register 11ch e3g832.tmabr e3 g.832 transmit ma byte register 11eh e3g832.tngbr e3 g.832 transmit nr and gc byte register 11.9.5.1 register bit descriptions register name: e3g832.tcr register description: e3 g.832 transmit control register register address: 118h bit # 15 14 13 12 11 10 9 8 name reserved -- -- reserved reserved tgcc tnrc1 tnrc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- tfebe afebed trdi ardid tfgd tais default 0 0 0 0 0 0 0 0 bit 10: transmit gc byte control (tgcc) ? when 0, the gc byte is inserted from the transmit hdlc controller . when 1, the gc byte is inserted from the gc byte register. note: if bit tgcc is 0 and tnrc[1:0] is 01, both the gc byte and nr byte will carry the same transmit hdlc controller (eight bits per frame period), however, the gc byte and nr byte in the same frame may or may not be equal. bits 9 to 8: transmit nr byte control (tnrc[1:0]) ? these two bits control the source of the nr byte. 00 = all ones. 01 = transmit from the hdlc controller. 10 = transmit from the feac controller. 11 = nr byte register. note: if tnrc[1:0] is 01 and tgcc is 0, both the nr byte and gc byte will carry the same transmit hdlc controller (eight bits per frame period), however, the nr byte and gc byte in the same frame may or may not be equal. bit 5: transmit rei error (tfebe) ? when automatic rei generation is defeated (afebed = 1), this bit is inserted into the second bit of the ma byte. bit 4: automatic rei defeat (afebed) ? when 0, the rei is automatically generated based upon the transmit remote error indication (trei) signal. when 1, the rei is inserted from the register bit tfebe. bit 3: transmit rdi alarm (trdi) ? when automatic rdi generation is defeated (ardid = 1), this bit is inserted into the first bit of the ma byte. bit 2: automatic rdi defeat (ardid) ? when 0, the rdi is automatically generated based upon the received e3 alarms. when 1, the rdi is inserted from the register bit trdi. bit 1: transmit frame generation disabled (tfgd) ? 0 = transmit frame generation is enabled
ds3170 ds3/e3 single-chip transceiver 192 of 233 1 = transmit frame generation is disabled; e3 overhead positions in the incoming e3 payload will be passed through to error insertion. note: the e3 overhead periods can still be overwritten by by error insertion, overhead insertion, or ais generation. bit 0: transmit alarm indication signal (tais) ? when 0, the normal signal is transmitted. when 1, the e3 output data stream is forced to all ones (ais). register name: e3g832.teir register description: e3 g.832 transmit error insertion register register address: 11ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved reserved cfbeie fbei default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pbee cpeie pei feic1 feic0 fei tsei meims default 0 0 0 0 0 0 0 0 bit 9: continuous remote error indi cation error insertion enable (cfbeie) ? when 0, single remote error indication (rei) error insertion is enabled. when 1, continuous rei error insertion is enabled, and rei errors will be transmitted continuously if fbei is high. bit 8: remote error indication error insertion enable (fbei) ? when 0, rei error insertion is disabled. when 1, rei error insertion is enabled. bit 7: parity block error enable (pbee) ? when 0, a parity error is generated by inverting a single bit in the em byte. when 1, a parity error is generated by inverting all eight bits in the em byte. bit 6: continuous parity error insertion enable (cpeie) ? when 0, single parity (bip-8) error insertion is enabled. when 1, continuous parity error insertion is enabled, and parity errors will be transmitted continuously if pei is high. bit 5: parity error insertion enable (pei) ? when 0, parity error insertion is disabled. when 1, parity error insertion is enabled. bits 4 to 3: framing error control (feic[1:0]) ? these two bits control the framing error event to be inserted. 00 = single bit error in one frame. 01 = word error in one frame. 10 = single bit error in four consecutive frames. 11 = word error in four consecutive frames. bit 2: framing error insertion enable (fei) ? when 0, framing error insertion is disabled. when 1, framing error insertion is enabled. bit 1: transmit single error insert (tsei) ? this bit causes an error of the enabled type(s) to be inserted in the transmit data stream if manual error insertion is disabled (meims = 0). a 0 to 1 transition causes a single error to be inserted. for a second error to be inserted, this bit must be set to 0, and back to 1. note: if meims is low, and this bit transitions more than once between error insertion opportunities, only one error will be inserted. bit 0: manual error insert mode select (meims) ? when 0, error insertion is initiated by the tsei register bit. when 1, error insertion is initiated by the transmit manual error insertion signal (tmei). note: if tmei or tsei is one, changing the state of this bit may cause an error to be inserted.
ds3170 ds3/e3 single-chip transceiver 193 of 233 register name: e3g832.tmabr register description: e3 g.832 transmit ma byte register register address: 11ch bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tpt2 tpt1 tpt0 ttigd tti3 tti2 tti1 tti0 default 0 0 0 0 0 0 0 0 bits 7 to 5: transmit payload type (tpt[2:0]) ? these bits determines the value transmitted in the payload type (third, fourth, and fifth bits in the ma byte). bit 4: transmit timing source indicator bit generation disable (ttigd) ? when 0, the last three bits of the ma byte (ma[6:8]) are generated from the four timing source indicator bits tti[3:0]. when 1, tti[3] is ignored and tti[2:0] are directly inserted into the last three bits of the ma byte. bits 3 to 0: transmit timing source indication (tti[3:0]) ? these four bits make up the timing source indicator bits. register name: e3g832.tngbr register description: e3 g.832 transmit nr and gc byte register register address: 11eh bit # 15 14 13 12 11 10 9 8 name tgc7 tgc6 tgc5 tgc4 tgc3 tgc2 tgc1 tgc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name tnr7 tnr6 tnr5 tnr4 tnr3 tnr2 tnr1 tnr0 default 0 0 0 0 0 0 0 0 bits 15 to 8: transmit gc byte (tgc[7:0]) ? these eight bits are the gc byte to be inserted into the e3 frame. bits 7 to 0: transmit nr byte (tnr[7:0]) ? these eight bits are the nr byte to be inserted into the e3 frame.
ds3170 ds3/e3 single-chip transceiver 194 of 233 11.9.6 receive g.832 e3 register map the receive g.832 e3 utilizes thirteen registers. table 11-27. receive g.832 e3 framer register map address register register description 120h e3g832.rcr e3 g.832 receive control register 122h e3g832.rmacr e3 g.832 receive ma byte control register 124h e3g832.rsr1 e3 g.832 receive status register #1 126h e3g832.rsr2 e3 g.832 receive status register #2 128h e3g832.rsrl1 e3 g.832 receive status register latched #1 12ah e3g832.rsrl2 e3 g.832 receive status register latched #2 12ch e3g832.rsrie1 e3 g.832 receive status register interrupt enable #1 12eh e3g832.rsrie2 e3 g.832 receive status register interrupt enable #2 130h e3g832.rmabr e3 g.832 receive ma byte register 132h e3g832.rngbr e3 g.832 receive nr and gc byte register 134h e3g832.rfecr e3 g.832 receive framing error count register 136h e3g832.rpecr e3 g.832 receive parity error count register 138h e3g832.rfber e3 g.832 receive remote error indication count register 13ah -- reserved 13ch -- unused 13eh -- unused 11.9.6.1 register bit descriptions register name: e3g832.rcr register description: e3 g.832 receive control register register address: 120h bit # 15 14 13 12 11 10 9 8 name reserved pec dls mdaisi aaisd ecc fecc1 fecc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name raile raild raiod raiad romd lip1 lip0 frsync default 0 0 0 0 0 0 0 0 bit 14: parity error count (pec) ? when 0, bip-8 block errors (em byte) are detected (no more than one per frame). when 1, bip-8-bit errors are detected (up to 8 per frame). bit 13: receive hdlc data link source (dls) ? when 0, the receive hdlc data link will be sourced from the gc byte. when 1, the receive hdlc data link will be sourced from the nr byte. bit 12: manual downstream ais insertion (mdaisi) ? when 0, manual downstream ais insertion is disabled. when 1, manual downstream ais insertion is enabled. bit 11: automatic downstream ais disable (aaisd) ? when 0, the presence of an los, oof, or ais condition will cause downstream ais to be inserted. when 1, the presence of an los, oof, or ais condition will not cause downstream ais to be inserted. bit 10: error count control (ecc) ? when 0, framing errors, parity errors, and rei errors will not be counted if an oof or ais condition is present. parity errors and rei errors will also not be counted during the e3 frame in which an oof or ais condition is terminated, and the next e3 frame. when 1, framing errors, parity errors, and rei errors will be counted regardless of the presence of an oof or ais condition.
ds3170 ds3/e3 single-chip transceiver 195 of 233 bits 9 to 8: framing error count control (fecc[1:0]) ? these two bits control the type of framing error events that are counted. 00 = count oof occurrences (counted regardless of the setting of the ecc bit).. 01 = count each bit error in fa1 and fa2 (up to 16 per frame). 10 = count frame alignment word (fa1 and fa2) errors (up to one per frame). 11 = count fa1 byte errors and fa2 byte errors (up to 2 per frame). bit 7: receive alarm indication on lof enable (raile) ? when 0, an lof condition does not affect the receive alarm indication signal (rai). when 1, an lof condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. bit 6: receive alarm indication on los disable (raild) ? when 0, an los condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. when 1, an los condition does not affect the rai signal. bit 5: receive alarm indication on oof disable (raiod) ? when 0, an oof condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. when 1, an oof condition does not affect the rai signal. bit 4: receive alarm indication on ais disable (raiad) ? when 0, an ais condition will cause the transmit e3 rdi bit to be set to one if transmit automatic rdi is enabled. when 1, an ais condition does not affect the rai signal. bit 3: receive overhead masking disable (romd) ? when 0, the e3 overhead positions in the outgoing e3 payload will be marked as overhead by rden. when 1, the e3 overhead positions in the outgoing e3 payload will be marked as data by rden. bits 2 to 1: lof integration period (lip[1:0]) ? these two bits determine the oof integration period for declaring lof. 00 = oof is integrated for 3 ms before declaring lof. 01 = oof is integrated for 2 ms before declaring lof. 10 = oof is integrated for 1 ms before declaring lof. 11 = lof is declared at the same time as oof. bit 0: force framer resynchronization (frsync) ? a 0 to 1 transition forces. an oof condition at the next framing word check. this bit must be cleared and set to one again to force another resynchronization. note: the oof condition is created by failing the most recent four data path frame alignment word checks. register name: e3g832.rmacr register description: e3 g.832 receive ma byte control register register address: 122h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- ept2 ept1 ept0 tied default 0 0 0 0 0 0 0 0 bits 3 to 1: expected payload type (ept[2:0]) ? these three bits contain the expected value of the payload type. bit 0: timing source indicator bit extraction disable (tied) ? when 0, the four timing source indications bits are extracted from the last three bits of the ma byte (ma[6:8]), and stored in a register. when 1, timing source indicator bit extraction is disabled, and the last three bits of the ma byte are integrated and stored in a register.
ds3170 ds3/e3 single-chip transceiver 196 of 233 register name: e3g832.rsr1 register description: e3 g.832 receive status register #1 register address: 124h bit # 15 14 13 12 11 10 9 8 name reserved -- -- rptu rptm reserved reserved rua1 bit # 7 6 5 4 3 2 1 0 name reserved reserved -- lof rai ais oof los bit 12: receive payload type unstable (rptu) ? when 0, the receive payload type is stable. when 1, the receive payload type is unstable. bit 11: receive payload type mismatch (rptm) ? when 0, the receive payload type and expected payload type match. when 1, the receive payload type and expected payload type do not match. bit 8: receive unframed all 1?s (rua1) ? when 0, the receive frame processor is not in a receive unframed all 1?s (rua1) condition. when 1, the receive frame processor is in an rua1 condition. bit 4: loss of frame (lof) ? when 0, the receive frame processor is not in a loss of frame (lof) condition. when 1, the receive frame processor is in an lof condition. bit 3: remote defect indication (rdi) ? this bit indicates the current state of the remote defect indication (rdi). bit 2: alarm indication signal (ais) ? when 0, the receive frame processor is not in an alarm indication signal (ais) condition. when 1, the receive frame processor is in an ais condition. bit 1: out of frame (oof) ? when 0, the receive frame processor is not in an out of frame (oof) condition. when 1, the receive frame processor is in an oof condition. bit 0: loss of signal (los) ? when 0, the receive loss of signal (los) input (rlos) is low. when 1, rlos is high. register name: e3g832.rsr2 register description: e3 g.832 receive status register #2 register address: 126h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved fbec pec fec bit 2: remote error indication count (fbec) ? when 0, the remote error indication count is zero. when 1, the remote error indication count is one or more. bit 1: parity error count (pec) ? when 0, the parity error count is zero. when 1, the parity error count is one or more. bit 0: framing error count (fec) ? when 0, the framing error count is zero. when 1, the framing error count is one or more.
ds3170 ds3/e3 single-chip transceiver 197 of 233 register name: e3g832.rsrl1 register description: e3 g.832 receive status register latched #1 register address: 128h bit # 15 14 13 12 11 10 9 8 name reserved -- til rptul rptml rptl reserved rua1l bit # 7 6 5 4 3 2 1 0 name gcl nrl cofal lofl rdil aisl oofl losl bit 13: timing source indication change latched (til) ? this bit is set when the ti[3:0] bits change state. bit 12: receive payload type unstable latched (rptul) ? this bit is set when the rptu bit transitions from zero to one. bit 11: receive payload type mismatch latched (rptml) ? this bit is set when the rptm bit transitions from zero to one. bit 10: receive payload type change latched (rptl) ? this bit is set when the rpt[2:0] bits change state. bit 8: receive unframed all 1?s change latched (rua1l) ? this bit is set when the rua1 bit changes state. bit 7: gc byte change latched (gcl) ? this bit is set when the rgc byte changes state. bit 6: nr byte change latched (nrl) ? this bit is set when the rnr byte changes state. bit 5: change of frame alignment latched (cofal) ? this bit is set when the data path frame counters are updated with a new frame alignment that is different from the previous frame alignment. bit 4: loss of frame change latched (lofl) ? this bit is set when the lof bit changes state. bit 3: remote defect indication change latched (rdil) ? this bit is set when the rdi bit changes state. bit 2: alarm indication signal change latched (aisl) ? this bit is set when the ais bit changes state. bit 1: out of frame change latched (oofl) ? this bit is set when the oof bit changes state. bit 0: loss of signal change latched (losl) ? this bit is set when the los bit changes state. register name: e3g832.rsrl2 register description: e3 g.832 receive status register latched #2 register address: 12ah bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved fbel pel fel bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved fbecl pecl fecl bit 10: remote error indication latched (fbel) ? this bit is set when a remote error indication is detected. bit 9: parity error latched (pel) ? this bit is set when a bip-8 parity error is detected. bit 8: framing error latched (fel) ? this bit is set when a framing error is detected. bit 2: remote error indication count latched (fbecl) ? this bit is set when the fbec bit transitions from zero to one. bit 1: parity error count latched (pecl) ? this bit is set when the pec bit transitions from zero to one. bit 0: framing error count latched (fecl) ? this bit is set when the fec bit transitions from zero to one.
ds3170 ds3/e3 single-chip transceiver 198 of 233 register name: e3g832.rsrie1 register description: e3 g.832 receive status register interrupt enable #1 register address: 12ch bit # 15 14 13 12 11 10 9 8 name reserved -- tiie rptuie rptmie rptie reserved rua1ie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name gcie nrie cofaie lofie raiie aisie oofie losie default 0 0 0 0 0 0 0 0 bit 13: timing indication interrupt enable (tiie) ? this bit enables an interrupt if the til bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 12: receive payload type unstable interrupt enable (rptuie) ? this bit enables an interrupt if the rptul bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 11: receive payload type mismatch interrupt enable (rptmie) ? this bit enables an interrupt if the rptml bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 10: receive payload type interrupt enable (rptie) ? this bit enables an interrupt if the rptl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: receive unframed all 1?s interrupt enable (rua1ie) ? this bit enables an interrupt if the rua1l bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 7: gc byte interrupt enable (gcie) ? this bit enables an interrupt if the gcl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 6: nr byte interrupt enable (nrie) ? this bit enables an interrupt if the nrl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 5: change of frame alignment interrupt enable (cofaie) ? this bit enables an interrupt if the cofal bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 4: loss of frame interrupt enable (lofie) ? this bit enables an interrupt if the lofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 199 of 233 bit 3: remote defect indication interrupt enable (rdiie) ? this bit enables an interrupt if the rdil bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: alarm indication signal interrupt enable (aisie) ? this bit enables an interrupt if the aisl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: out of frame interrupt enable (oofie) ? this bit enables an interrupt if the oofl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 0: loss of signal interrupt enable (losie) ? this bit enables an interrupt if the losl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g832.rsrie2 register description: e3 g.832 receive status register interrupt enable #2 register address: 12eh bit # 15 14 13 12 11 10 9 8 name -- -- -- -- reserved fbeie peie feie default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- -- -- -- reserved fbecie pecie fecie default 0 0 0 0 0 0 0 0 bit 10: remote error indication interrupt enable (fbeie) ? this bit enables an interrupt if the fbel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 9: parity error interrupt enable (peie) ? this bit enables an interrupt if the pel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 8: framing error interrupt enable (feie) ? this bit enables an interrupt if the fel bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 2: remote error indication count interrupt enable (fbecie) ? this bit enables an interrupt if the fbecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled bit 1: parity error count interrupt enable (pecie) ? this bit enables an interrupt if the pecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled
ds3170 ds3/e3 single-chip transceiver 200 of 233 bit 0: framing error count interrupt enable (fecie) ? this bit enables an interrupt if the fecl bit is set and the bit in gl.isrie .psrie[4:1] that corresponds to this port is set. 0 = interrupt disabled 1 = interrupt enabled register name: e3g832.rmabr register description: e3 g.832 receive ma byte register register address: 130h bit # 15 14 13 12 11 10 9 8 name -- -- -- -- -- -- -- -- default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name -- rpt2 rpt1 rpt0 ti3 ti2 ti1 ti0 default 0 0 0 0 0 0 0 0 bits 6 to 4: receive payload type (rpt[2:0]) ? these three bits are the integrated version of the payload type (ma[3:5]) from the ma byte. bits 3 to 0: receive timing source indication (ti[3:0]) ? when timing source indicator extraction is enabled, these four bits are the integrated version of the four timing source indicator bits extracted from the last three bits of the ma byte (ma[6:8]). when timing source indicator bit extraction is disabled, ti[3] is zero, and ti[2:0] contain the integrated version of the last three bits of the ma byte. register name: e3g832.rngbr register description: e3 g.832 receive nr and gc byte register register address: 132h bit # 15 14 13 12 11 10 9 8 name rgc7 rgc6 rgc5 rgc4 rgc3 rgc2 rgc1 rgc0 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name rnr7 rnr6 rnr5 rnr4 rnr3 rnr2 rnr1 rnr0 default 0 0 0 0 0 0 0 0 bits 15 to 8: receive gc byte (rgc[7:0]) ? these eight bits are the integrated version of the gc byte as extracted from the e3 frame. bits 7 to 0: receive nr byte (rnr[7:0]) ? these eight bits are the integrated version of the nr byte as extracted from the e3 frame.
ds3170 ds3/e3 single-chip transceiver 201 of 233 register name: e3g832.rfecr register description: e3 g.832 receive framing error count register register address: 134h bit # 15 14 13 12 11 10 9 8 name fe15 fe14 fe13 fe12 fe11 fe10 fe9 fe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fe7 fe6 fe5 fe4 fe3 fe2 fe1 fe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: framing error count (fe[15:0]) ? these sixteen bits indicate the number of framing error events on the incoming e3 data stream. this register is updated via the pmu signal (see section 9.4.5 ) register name: e3g832.rpecr register description: e3 g.832 receive parity error count register register address: 136h bit # 15 14 13 12 11 10 9 8 name pe15 pe14 pe13 pe12 pe11 pe10 pe9 pe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name pe7 pe6 pe5 pe4 pe3 pe2 pe1 pe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: parity error count (pe[15:0]) ? these sixteen bits indicate the number of parity (bip-8) errors detected on the incoming e3 data stream. this register is updated via the pmu signal (see section 9.4.5 ) register name: e3g832.rfber register description: e3 g.832 receive remote error indication count register register address: 138h bit # 15 14 13 12 11 10 9 8 name fbe15 fbe14 fbe13 fbe12 fbe11 fbe10 fbe9 fbe8 default 0 0 0 0 0 0 0 0 bit # 7 6 5 4 3 2 1 0 name fbe7 fbe6 fbe5 fbe4 fbe3 fbe2 fbe1 fbe0 default 0 0 0 0 0 0 0 0 bits 15 to 0: remote error indication count (fbe[15:0]) ? these sixteen bits indicate the number of remote error indications detected on the incoming e3 data stream. this register is updated via the pmu signal (see section 9.4.5 )
ds3170 ds3/e3 single-chip transceiver 202 of 233 12 jtag information 12.1 jtag description this device supports the standard instruction codes sample/preload, bypass, and extest. optional public instructions included are highz, clamp, and idcode. the device contains the following items, which meet the requirements set by the ieee 1149.1 standard test access port (tap) and boundary scan architecture: test access port (tap) tap controller instruction register bypass register boundary scan register device identification register the test access port has the necessary interface pins, namely jtclk, jtdi, jtdo, and jtms, and the optional jtrst input. details on these pins can be found in section 7 . refer to ieee 1149.1-1990, ieee 1149.1a-1993, and ieee 1149.1b-1994 for details about the boundary scan architecture and the test access port. figure 12-1. jtag block diagram boundary scan register identification register bypass register instruction register test access port controller mux select tri-state jtdi 10k jtms 10k jtclk j trst 10k jtdo
ds3170 ds3/e3 single-chip transceiver 203 of 233 12.2 jtag tap controller state machine description this section covers the details on the operation of the test access port (tap) controller state machine. see figure 12-2 for details on each of the states described below. the tap controller is a finite state machine that responds to the logic level at jtms on the rising edge of jtclk. figure 12-2. jtag tap controller state machine test-logic-reset run-test/idle select dr-scan 1 0 capture-dr 1 0 shift-dr 0 1 exit1- dr 1 0 pause-dr 1 exit2-dr 1 update-dr 0 0 1 select ir-scan 1 0 capture-ir 0 shift-ir 0 1 exit1-ir 1 0 pause-ir 1 exit2-ir 1 update-ir 0 0 1 0 0 1 0 1 0 1 test-logic-reset. when jtrst is changed from low to high, the tap controller starts in the test-logic-reset state, and the instruction register is loaded with the idcode instruction. all system logic and i/o pads on the device operate normally. this state can also be reached from any other state by holding jtms high and clocking jtclk five times. run-test-idle. run-test-idle is used between scan operations or during specific tests. the instruction register and test register remain idle. select-dr-scan. all test registers retain their previous state. with jtms low, a rising edge of jtclk moves the controller into the capture-dr state and initiates a scan sequence. jtms high moves the controller to the select- ir-scan state.
ds3170 ds3/e3 single-chip transceiver 204 of 233 capture-dr. data may be parallel loaded into the test data register selected by the current instruction. if the instruction does not call for a parallel load or the selected register does not allow parallel loads, the test register remains at its current value. on the rising edge of jtclk, the controller goes to the shift-dr state if jtms is low or to the exit1-dr state if jtms is high. shift-dr. the test data register selected by the current instruction is connected between jtdi and jtdo and shifts data one stage towards its serial output on each rising edge of jtclk. if a test register selected by the current instruction is not placed in the serial path, it maintains its previous state. exit1-dr. while in this state, a rising edge on jtclk with jtms high puts the controller in the update-dr state that terminates the scanning process. a rising edge on jtclk with jtms low puts the controller in the pause-dr state. pause-dr. shifting of the test registers is halted while in this state. all test registers selected by the current instruction retain their previous state. the controller remains in this state while jtms is low. a rising edge on jtclk with jtms high puts the controller in the exit2-dr state. exit2-dr. while in this state, a rising edge on jtclk with jtms high puts the controller in the update-dr state and terminate the scanning process. a rising edge on jtclk with jtms low puts the controller in the shift-dr state. update-dr. a falling edge on jtclk while in the update-dr state latches the data from the shift register path of the test registers into the data output latches. this prevents changes at the parallel output due to changes in the shift register. a rising edge on jtclk with jtms low, puts the controller in the run-test-idle state. with jtms high, the controller enters the select-dr-scan state. select-ir-scan. all test registers retain their previous state. the instruction register remains unchanged during this state. with jtms low, a rising edge on jtclk moves the controller into the capture-ir state and initiates a scan sequence for the instruction register. jtms high during a rising edge on jtclk puts the controller back into the test-logic-reset state. capture-ir. the capture-ir state is used to load the shift register in the instruction register with a fixed value of 001. this value is loaded on the rising edge of jtclk. if jtms is high on the rising edge of jtclk, the controller enters the exit1-ir state. if jtms is low on the rising edge of jtclk, the controller enters the shift-ir state. shift-ir. in this state, the shift register in the instruction register is connected between jtdi and jtdo and shifts data one stage for every rising edge of jtclk towards the serial output. the parallel registers, as well as all test registers, remain at their previous states. a rising edge on jtclk with jtms high moves the controller to the exit1-ir state. a rising edge on jtclk with jtms low keeps the controller in the shift-ir state while moving data one stage through the instruction shift register. exit1-ir. a rising edge on jtclk with jtms low puts the controller in the pause-ir state. if jtms is high on the rising edge of jtclk, the controller enters the update-ir state and terminate the scanning process. pause-ir. shifting of the instruction register is halted temporarily. with jtms high, a rising edge on jtclk puts the controller in the exit2-ir state. the controller remains in the pause-ir state if jtms is low during a rising edge on jtclk. exit2-ir. a rising edge on jtclk with jtms high put the controller in the update-ir state. the controller loops back to the shift-ir state if jtms is low during a rising edge of jtclk in this state. update-ir. the instruction shifted into the instruction shift register is latched into the parallel output on the falling edge of jtclk as the controller enters this state. once latched, this instruction becomes the current instruction. a rising edge on jtclk with jtms low, puts the controller in the run-test-idle state. with jtms high, the controller enters the select-dr-scan state.
ds3170 ds3/e3 single-chip transceiver 205 of 233 12.3 jtag instruction register and instructions the instruction register contains a shift register as well as a latched parallel output and is 3 bits in length. when the tap controller enters the shift - ir state, the instruction shift register is connected between jtdi and jtdo. while in the shift - ir state, a rising edge on jtclk with jtms low shifts data one stage toward the serial output at jtdo. a rising edge on jtclk in the exit1 - ir state or the exit2 - ir state with jtms high moves the controller to the update - ir state. the falling edge of that same jtclk latches the data in the instruction shift register to the instruction parallel output. instructions supported by the device and their respective operational binary codes are shown in table 12-1 . table 12-1. jtag instruction codes instructions selected regi ster instruction codes extest boundary scan 000 idcode device identification 001 sample/preload boundary scan 010 clamp bypass 011 highz bypass 100 ---- bypass 101 ---- bypass 110 bypass bypass 111 sample/preload. this is a mandatory instruction for the ieee 1149.1 specification. this instruction supports two functions. the digital i/os of the device can be sampled at the boundary scan register without interfering with the normal operation of the device and the boundary scan register can be pre-loaded for the extest instruction. the positive edge of jtclk in the capture - dr state samples all digital input pins into the boundary scan register. the boundary scan register is connected between jtdi and jtdo. the data on jtdi pin is clocked into the boundary scan register and the data captured in the capture-dr state is shifted out the tdo pin in the shift - dr state. extest. this is a mandatory instruction for the ieee 1149.1 specification. this instruction allows testing of all interconnections to the device. when the extest instruction is latched in the instruction register, the following actions occur. once enabled by the update - ir state, the parallel outputs of all digital output pins are driven according to the values in the boundary scan registers on the positive edge of jtclk. the boundary scan register is connected between jtdi and jtdo. the positive edge of jtclk in the capture - dr state samples all digital input pins into the boundary scan register. the negative edge of jtclk in the update-dr state causes all of the digital output pins to be driven according to the values in the boundary scan registers that have been shifted in during the shift-dr state. the outputs are returned to their normal mode or hiz mode at the positive edge of jtclk during the update-ir state when an instruction other than extest or clamp is activated. bypass. this is a mandatory instruction for the ieee 1149.1 specification. when the bypass instruction is latched into the parallel instruction register, jtdi connects to jtdo through the 1 - bit bypass test register. this allows data to pass from jtdi to jtdo not affecting the device?s normal operation. this mode can be used to bypass one or more chips in a system with multiple chips that have their jtag scan chain connected in series. the chips not in bypass can then be tested with the normal jtag modes. idcode. this is a mandatory instruction for the ieee 1149.1 specification. when the idcode instruction is latched into the parallel instruction register, the identification test register is selected. the device identification code is loaded into the identification register on the rising edge of jtclk following entry into the capture - dr state. shift - dr can be used to shift the identification code out serially through jtdo. during test - logic - reset, the identification code is forced into the instruction register?s parallel output. highz. all digital outputs are placed into a high-impedance state. the bypass register is connected between jtdi and jtdo. the outputs are put into the hiz mode when the hiz instruction is loaded in the update-ir state and on the positive edge of jtclk. the outputs are returned to their normal mode or driven from the boundary scan register at the positive edge of jtclk during the update-ir state when an instruction other than hiz is activated.
ds3170 ds3/e3 single-chip transceiver 206 of 233 clamp. all digital output pins output data from the boundary scan parallel output while connecting the bypass register between jtdi and jtdo. the outputs do not change during the clamp instruction. if the previous instruction was not extest, the outputs will be driven according to the values in the boundary scan register at the positive edge of jtclk in the update-ir state. the typical use of this instruction is in a system that has the jtag scan chain of multiple chips connected in series, and all of the chips have their outputs initialized using the extest mode. then some of the chips are left initialized using the clamp mode and others have their io controlled using the extest mode. this reduces the size of the scan chain during the partial testing of the system. 12.4 jtag id codes table 12-2. jtag id codes device revision id[31:28] device code id[27:12] manufacturer?s code id[11:1] required id[0] ds3170 consult factory 0000000001001111 00010100001 1
ds3170 ds3/e3 single-chip transceiver 207 of 233 12.5 jtag functional timing this functional timing for the jtag circuits shows:  the jtag controller starting from reset state  shifting out the first 4 lsb bits of the idcode  shifting in the bypass instruction (111) while shifting out the mandatory x01 pattern  shifting the tdi pin to the tdo pin through the bypass shift register  an asynchronous reset occurs while shifting figure 12-3. jtag functional timing jtclk jtrst jtms jtdi jtdo (state) reset x run test idle select dr scan capture dr shift dr exit1 dr update dr select dr scan select ir scan capture ir shift ir exit1 ir update ir select dr scan capture dr shift dr test logic idle (inst) idcode bypass idcode x x x x x output pin output pin level change if in "extest" instruction mode 12.6 io pins all input, output, and inout pins are inout pins in jtag mode.
ds3170 ds3/e3 single-chip transceiver 208 of 233 13 pin configurations table 13-1. ds3170 pin assignments for 100-pin lqfp (sorted by signal name) signal pin signal pin signal pin signal pin a[0] 37 d[7] 47 roh 88 txp 12 a[1] 27 d[8] 48 rohclk 73 txp 13 a[2] 28 d[9] 40 rohsof 61 width 23 a[3] 29 gpio[1] 68 rpos 62 wr 5 a[4] 30 gpio[2] 65 rser 86 unused 89 a[5] 31 gpio[3] 64 rsofo 80 vdd 3 a[6] 33 gpio[4] 57 rst 74 vdd 9 a[7] 35 gpio[5] 49 rxn 97 vdd 34 a[8] 36 gpio[6] 39 rxp 94 vdd 51 ale 32 gpio[7] 8 spi 4 vdd 69 nc 20 gpio[8] 7 tclki 72 vdd 84 cs 1 hiz 95 tclko 77 vdd_clad 21 d[0] 38 int 71 test 24 vdd_ja 11 d[1] 50 jtclk 91 tlclk 85 vdd_rx 93 d[10] 52 jtdi 96 tneg 70 vdd_tx 15 d[11] 53 jtdo 90 toh 83 vss 6 d[12] 54 jtms 98 tohclk 82 vss 26 d[13] 55 jtrst 99 tohen 66 vss 41 d[14] 56 mode 18 tohsof 60 vss 59 d[15] 58 rclko 87 tpos 67 vss 76 d[2] 42 rd 2 tser 75 vss 100 d[3] 43 rdy 25 tsofi 78 vss_clad 19 d[4] 44 refclk 22 tsofo 79 vss_ja 10 d[5] 45 rlclk 81 txn 16 vss_rx 92 d[6] 46 rneg 63 txn 17 vss_tx 14
ds3170 ds3/e3 single-chip transceiver 209 of 233 table 13-2. ds3170 pin assignments for 100-pin lqfp (sorted by pin #) pin signal pin signal pin signal pin signal 1 cs 26 vss 51 vdd 76 vss 2 rd 27 a[1] 52 d[10] 77 tclko 3 vdd 28 a[2] 53 d[11] 78 tsofi 4 spi 29 a[3] 54 d[12] 79 tsofo 5 wr 30 a[4] 55 d[13] 80 rsofo 6 vss 31 a[5] 56 d[14] 81 rlclk 7 gpio[8] 32 ale 57 gpio[4] 82 tohclk 8 gpio[7] 33 a[6] 58 d[15] 83 toh 9 vdd 34 vdd 59 vss 84 vdd 10 vss_ja 35 a[7] 60 tohsof 85 tlclk 11 vdd_ja 36 a[8] 61 rohsof 86 rser 12 txp 37 a[0] 62 rpos 87 rclko 13 txp 38 d[0] 63 rneg 88 roh 14 vss_tx 39 gpio[6] 64 gpio[3] 89 unused1 15 vdd_tx 40 d[9] 65 gpio[2] 90 jtdo 16 txn 41 vss 66 tohen 91 jtclk 17 txn 42 d[2] 67 tpos 92 vss_rx 18 mode 43 d[3] 68 gpio[1] 93 vdd_rx 19 vss_clad 44 d[4] 69 vdd 94 rxp 20 unused2 45 d[5] 70 tneg 95 hiz 21 vdd_clad 46 d[6] 71 int 96 jtdi 22 refclk 47 d[7] 72 tclki 97 rxn 23 width 48 d[8] 73 rohclk 98 jtms 24 test 49 gpio[5] 74 rst 99 jtrst 25 rdy 50 d[1] 75 tser 100 vss
ds3170 ds3/e3 single-chip transceiver 210 of 233 table 13-3. ds3170 pin assignments for 100-ball csbga (sorted by signal name) signal ball signal ball signal ball signal ball a[0] k5 d[7] k8 roh b6 txp e1 a[1] j2 d[8] j8 rohclk c9 txp e2 a[2] k2 d[9] g6 rohsof f8 width h2 a[3] h3 gpio[1] e8 rpos f10 wr c2 a[4] j3 gpio[2] e7 rser c6 unused1 d6 a[5] k3 gpio[3] f7 rsofo b8 vdd b1 a[6] h4 gpio[4] g7 rst e6 vdd d1 a[7] j4 gpio[5] f6 rxn a3 vdd k4 a[8] h5 gpio[6] g5 rxp a4 vdd k10 ale g4 gpio[7] d3 spi c3 vdd d10 unused2 g2 gpio[8] d4 tclki c10 vdd a7 cs a1 hiz b4 tclko b9 vdd_clad g3 d[0] j5 int d8 test f5 vdd_ja e3 d[1] k9 jtclk a5 tlclk b7 vdd_rx c5 d[10] j9 jtdi c4 tneg d9 vdd_tx f4 d[11] j10 jtdo d5 toh c7 vss c1 d[12] h8 jtms b3 tohclk d7 vss k1 d[13] h9 jtrst e5 tohen e10 vss k6 d[14] h10 mode f3 tohsof g9 vss g10 d[15] g8 rclko a6 tpos e9 vss a10 d[2] j6 rd b2 tser b10 vss a2 d[3] h6 rdy j1 tsofi a9 vss_clad g1 d[4] k7 refclk h1 tsofo c8 vss_ja d2 d[5] j7 rlclk a8 txn f1 vss_rx b5 d[6] h7 rneg f9 txn f2 vss_tx e4
ds3170 ds3/e3 single-chip transceiver 211 of 233 table 13-4. ds3170 pin assignments for 100-ball csbga (sorted by ball #) ball signal ball signal ball signal ball signal a1 cs c6 rser f1 txn h6 d[3] a2 vss c7 toh f2 txn h7 d[6] a3 rxn c8 tsofo f3 mode h8 d[12] a4 rxp c9 rohclk f4 vdd_tx h9 d[13] a5 jtclk c10 tclki f5 test h10 d[14] a6 rclko d1 vdd f6 gpio[5] j1 rdy a7 vdd d2 vss_ja f7 gpio[3] j2 a[1] a8 rlclk d3 gpio[7] f8 rohsof j3 a[4] a9 tsofi d4 gpio[8] f9 rneg j4 a[7] a10 vss d5 jtdo f10 rpos j5 d[0] b1 vdd d6 unused1 g1 vss_clad j6 d[2] b2 rd d7 tohclk g2 unused2 j7 d[5] b3 jtms d8 int g3 vdd_clad j8 d[8] b4 hiz d9 tneg g4 ale j9 d[10] b5 vss_rx d10 vdd g5 gpio[6] j10 d[11] b6 roh e1 txp g6 d[9] k1 vss b7 tlclk e2 txp g7 gpio[4] k2 a[2] b8 rsofo e3 vdd_ja g8 d[15] k3 a[5] b9 tclko e4 vss_tx g9 tohsof k4 vdd b10 tser e5 jtrst g10 vss k5 a[0] c1 vss e6 rst h1 refclk k6 vss c2 wr e7 gpio[2] h2 width k7 d[4] c3 spi e8 gpio[1] h3 a[3] k8 d[7] c4 jtdi e9 tpos h4 a[6] k9 d[1] c5 vdd_rx e10 tohen h5 a[8] k10 vdd
ds3170 ds3/e3 single-chip transceiver 212 of 233 figure 13-1. ds3170 pin assignments?100-ball csbga (top view) 1 2 3 4 5 6 7 8 9 10 a cs_n vss rxn rxp jtclk rclko vdd rlclk tsofi vss b vdd rd_n jtms hiz_n vss_rx roh tlclk rsofo tclko tser c vss wr_n spi jtdi vdd_rx rser toh tsofo rohclk tclki d vdd vss_ja gpio[7] gpio[8] jtdo unused1 tohclk int_n tneg vdd e txp txp vdd_ja vss_tx jtrst_n rst_n gpio[2] gpio[1] tpos tohen f txn txn mode vdd_tx test_n gpio[5] gpio[3] rohsof rneg rpos g vss_clad unused2 vdd_clad ale gpio[6] d[9] gpio[4] d[15] tohsof vss h refclk width a[3] a[6] a[8] d[3] d[6] d[12] d[13] d[14] j rdy_n a[1] a[4] a[7] d[0] d[2] d[5] d[8] d[10] d[11] k vss a[2] a[5] vdd a[0] vss d[4] d[7] d[1] vdd figure 13-2. ds3170 pin assignments?100-pin lqfp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 10 0 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 c s r d vdd spi w r vss gpio[8] gpio[7] vdd vss_ja vdd_ja txp txp vss_tx vdd_tx txn txn mode vss_clad unused2 vdd_clad refclk width t est r dy vss j trst jtms rxn jtdi h iz rxp vdd_rx vss_rx jtclk jtdo unused1 roh rclko rse r tlclk vdd toh tohclk rlclk rsofo tsofo tsofi tclko vss tser rst_n rohclk tclki i nt tneg vdd gpio[1] tpos tohen gpio[2] gpio[3] rneg rpos rohsof tohsof vss d[15] gpio[4] d[14] d[13] d[12] d[11] d[10] vdd vss a[1] a[2] a[3] a[4] a[5] ale a[6] vdd a[7] a[8] a[0] d[0] gpio[6] d[9] vss d[2] d[3] d[4] d[5] d[6] d[7] d[8] gpio[5] d[1] ds3170 top view
ds3170 ds3/e3 single-chip transceiver 213 of 233 14 package information (the package drawing(s) in this data sheet may not reflect the most current specifications. for the latest package outline info rmation, go to www.maxim-ic.com/dallaspackinfo .) figure 14-1. mechanical dimensions?100-ball csbga
ds3170 ds3/e3 single-chip transceiver 214 of 233 figure 14-2. mechanical dimensions?100-pin lqfp
ds3170 ds3/e3 single-chip transceiver 215 of 233 15 package thermal information table 15-1. thermal information for 100-pin csbga parameter value target ambient temperature range -40c to +85c die junction temperature range -40c to +125c theta-ja, still air 38.5c/w (note 1) . table 15-2. thermal information for 100-pin lqfp parameter value target ambient temperature range -40c to +85c die junction temperature range -40c to +125c theta-ja, still air 40c/w (note 1) note 1: theta-ja is based on the package mounted on a four-layer jedec board and measured in a jedec test chamber.
ds3170 ds3/e3 single-chip transceiver 216 of 233 16 dc electrical characteristics absolute maximum ratings voltage range on any input, bidirectional or open drain output lead with respect to v ss ?????????????????????????????..-0.3v to +5.5v supply voltage range (v dd ) with respect to v ss ..??????????????????????-0.3v to +3.63v ambient operating temperature range??????????????????????????..-40c to +85c junction operating temperature range? ?????????????????????????-40c to +125c storage temperature range??????????? ???????????????????...-55c to +125c soldering temperature range????????????????????..see ipc/jedec j - std - 020 standard these are stress ratings only and functional operation of the device at these or any other conditions beyond those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time can affect reliability. ambient operating temperature range is assuming the device is mounted on a jedec standard test board in a convection cooled jed ec test enclosure. note: the typical values listed below are not production tested. table 16-1. recommended dc operating conditions (v dd = 3.3v  5%, t j = -40c to +85c.) parameter symbol conditions min typ max units logic 1 v ih 2.4 5.5 v logic 0 v il -0.3 +0.8 v supply (v dd ) 5% v dd 3.135 3.300 3.465 v table 16-2. dc electrical characteristics (t j = -40c to +85c.) parameter symbol conditions min typ max units supply current (v dd = 3.465v) i dd (notes 1, 2) 120 145 ma power-down current (all disable bits set) i ddd (note 2) 18 25 ma lead capacitance c io 7 pf input leakage i il -10 +10  a input leakage (input pins with internal pullup resistors) i ilp -350 +10  a output leakage (when hi-z) i lo -10 +10  a output voltage (i oh = -4.0ma) v oh 4ma outputs, v dd = 3.135 2.4 v output voltage (i ol = 4.0ma) v ol 4ma outputs, v dd = 3.135 0.4 v output voltage (i oh = -6.0ma) v oh 6ma outputs, v dd = 3.135 2.4 v output voltage (i ol = 6.0ma) v ol 6ma outputs, v dd = 3.135 0.4 v note 1: mode ds3 line rate, all outputs enabled. note 2: all outputs loaded with rated capacitance; all inputs between v dd and v ss ; inputs with pullups connected to v dd .
ds3170 ds3/e3 single-chip transceiver 217 of 233 table 16-3. output pin drive pin name type drive strength (ma) tlclk o 6 tpos /tdat o 6 tneg o 6 txp o n/a (analog) txn o n/a (analog) tohclk o 4 tohsof o 4 roh o 4 rohclk o 4 rohsof o 4 tclko/tgclk o 6 tsofo/tden o 6 rser o 6 rclkon/rgclk o 6 rsofo/rden o 6 d[15:0] io 4 rdy oz 6 int oz 4 gpio[7:0] io 4 jtdo oz 4
ds3170 ds3/e3 single-chip transceiver 218 of 233 17 ac timing characteristics there are several common ac characteristic definitions. these generic definitions are shown in figure 17-1 , figure 17-2 , figure 17-3 , and figure 17-4 . definitions that are specific to a given interface are shown in that interface?s subsection. figure 17-1. clock period and duty cycle definitions clock t1 t2 t2 figure 17-2. rise time, fall time, and jitter definitions clock t1 t4 t3 t3 t4/2 figure 17-3. hold, setup, and dela y definitions (ris ing clock edge) clock signal t5 t6 signal t7
ds3170 ds3/e3 single-chip transceiver 219 of 233 figure 17-4. hold, setup, and dela y definitions (fa lling clock edge) clock signal t5 t6 signal t7 figure 17-5. to/from hi z delay definitions (ris ing clock edge) clock signal t8 t9 figure 17-6. to/from hi z delay definitions (falling clock edge) clock signal t8 t9
ds3170 ds3/e3 single-chip transceiver 220 of 233 17.1 framer data path ac characteristics all ac timing characteristics are specified with a 25 pf capacitive load on all output pins, v ih = 2.4v and v il = 0.8v. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in in figure 17-1 , figure 17-2 , figure 17-3 , and figure 17-4 apply to this interface . table 17-1. framer interface timing (v dd = 3.3v  5%, t j = -40c to +125c.) parameter symbol conditions min typ max units clk frequency f1(1/t1) (note 1) 52 mhz clk clock duty cycle (t2/t1) t2/t1 (note 2) 40 50 60 % clk rise or fall times (20% to 80%) t3 (note 2) 4 ns din to clk setup time t5 (note 3) 4 ns clk to din hold time t6 (note 3) 0 ns (note 4) 2 10 ns clk to dout delay t7 (note 5) 2 8 ns note 1: any mode, tclki, rlclk input clocks. note 2: any mode, tclki, rlclk input clocks. note 3: rlclk clock input to rpos/rdat, rneg/rlcv inputs. note 4: tclki, rlclk clock inputs to tpos/tdat, tneg outputs. note 5: tlclkn, tclko, rclko clock outputs to tpos/tdat, tneg outputs. table 17-2. system port interface timing (v dd = 3.3v  5%, t j = -40c to +125c.) parameter symbol conditions min typ max units clk frequency f1(1/t1) (note 1) 52 mhz clk clock duty cycle (t2/t1) t2/t1 (note 2) 40 50 60 % clk rise or fall times (20% to 80%) t3 (note 2) 4 ns (note 3) 3 ns din to clk setup time t5 (note 4) 7 ns (note 3) 1 ns clk to din hold time t6 (note 4) 1 ns (note 5) 2 10 ns clk to dout delay t7 (note 6) 2 8 ns note 1: any mode, tclki, rlclk input clocks. note 2: any mode, tclki, rlclk input clocks. note 3: tclki, rlclk clock inputs to tsofi, tser inputs. note 4: tclko, rclko clock outputs to tsofi, tser inputs. note 5: tclki, rlclk clock input to tsofo/tden, rser, rsofo/rden outputs. note 6: tclko, rclko clock output to tsofo/tden, rser, rsofo/rden outputs.
ds3170 ds3/e3 single-chip transceiver 221 of 233 table 17-3. misc timing (v dd = 3.3v  5%, t j = -40c to +125c.) parameter symbol conditions min typ max units asynchronous input high, low time t1-t2, t2 (note 1) 500 ns asynchronous input rise, fall time t3 (note 1) 10 ns note 1: tmei (gpio), pmu (gpio), 8krefi (gpio) and rst inputs . 17.2 overhead port ac characteristics all ac timing characteristics are specified with a 25 pf capacitive load on all output pins, v ih = 2.4v and v il = 0.8. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in figure 17-1 , figure 17-2 , figure 17-3 , and figure 17-4 apply to this interface . table 17-4. overhead port timing (v dd = 3.3v  5%, t j = -40  c to +125  c.) parameter symbol conditions min typ max units clk period t1 (note 1) 500 ns clk clock high and low time t1-t2, t2 (note 1) 200 ns din to clk setup time t5 (note 2) 20 ns clk to din hold time t6 (note 2) 20 ns clk to dout delay t7 (note 3) -20 20 ns note 1: tohclk, rohclk output clocks. note 2: tohclk clock falling edge outputs to toh, tohen inputs. note 3: tohclk, rohclk clock falling edge outputs to tohsof, roh, rohsof outputs.
ds3170 ds3/e3 single-chip transceiver 222 of 233 17.3 micro interface ac characteristics 17.3.1 spi bus mode table 17-5. spi bus mode timing symbol (1) characteristic (2) symbol min max units operating frequency slave f bus(s) 10 mhz t1 cycle time: slave t cyc(s) 100 ? ns t2 enable lead time t lead(s) 15 ? ns t3 enable lag time t lag(s) 15 ? ns t4 clock (clk) high time slave t clkh(s) 50 ? ns t5 clock (clk) low time slave t clkl(s) 50 ? ns t6 data setup time (inputs) slave t su(s) 5 ? ns t7 data hold time (inputs) slave t h(s) 15 ? ns t8 disable time, slave (3) t dis(s) ? 25 ns t9 data valid time, after enable edge slave (4) t v(s) ? 40 ns t10 data hold time, outputs, after enable edge slave t hd(s) 5 ? ns note 1: symbols refer to dimensions in the following figure. note 2: 100 pf load on all spi pins. note 3: hold time to high-impedance state. note 4: with 100 pf on all spi pins.
ds3170 ds3/e3 single-chip transceiver 223 of 233 figure 17-7. spi interface timing diagram note: 1. clock edge reference to data controlled by cpha and cpol settings. refer to functional timing diagrams. 2. not defined, but usually msb of character just received. cs input spi_sclk spi_sclk 1 mosi input miso output msb bits 13 - 0 slave msb bits 6-1 note 2 bit 14 t1 t4 t5 t2 t3 slave lsb t8 t6 t7 t9 t10
ds3170 ds3/e3 single-chip transceiver 224 of 233 17.3.2 parallel bus mode the ac characteristics for the external bus interface in parallel mode. this table references figure 17-8 and figure 17-9 . table 17-6. micro interface timing (v dd = 3.3v 5%, tj = -40c to 125c.) signal name(s) symbol description min typ max units notes a[n:0] t1a setup time to rd , wr , ds active 10 ns 1 ale t1b setup time to rd , wr , ds active 10 ns 1, 2 a[n:0] t2 setup time to ale inactive 2 ns 1, 2 a[n:0] t3 hold time from ale inactive 2 ns 1, 2 ale t4 pulse width 5 ns 1, 2 a[n:0], ale t5 hold time from rd , wr , ds inactive 0 ns 1 cs , r/ w t6 setup time to rd , wr active 0 ns 1 d[15:0] t8 output delay time from rd , ds active 30 ns 1 rd , wr , ds t9a pulse width if not using rdy handshake 35 ns 1, 4 rd , wr , ds t9b delay from rdy 15 ns 1 d[15:0] t10 output deassert delay time from rd , ds inactive 2 10 ns 1, 3 cs , r/ w t12 hold time from rd , wr , ds inactive 0 ns 1 d[15:0] t13 input setup time to wr , ds inactive 10 ns 1 d[15:0] t14 input hold time from wr , ds inactive 5 ns 1 rdy t15 delay time from rd , wr , ds active 5 ns 1 rdy t16 delay time from rd , wr , ds inactive 0 ns 1 rdy t17 enable delay time from cs active 18 ns 1 rdy t18 disable delay time from cs inactive 12 ns 1 rdy t19 ending high pulse width 1 ns 1 r/ w t20 setup time to ds active 2 ns 1 r/ w t21 hold time to ds inactive 2 ns 1 note 1: the input/output timing reference level for all signals is vdd/2. transition time (80%/20%) on rd , wr, and cs inputs is 5ns (max). note 2: multiplexed mode timing only. note 3: d[15:0] output valid until not driven. note 4: timing required if not using rdy handshake.
ds3170 ds3/e3 single-chip transceiver 225 of 233 figure 17-8. micro interface nonmultiplexed read/write cycle d[15:0] r dy t8 t10 c s t6 t12 r d, w r, d s t9a a[10:0] t5 t1a d[15:0] t13 t14 t15 t16 t17 t18 t19 r / w t20 t21 t9b
ds3170 ds3/e3 single-chip transceiver 226 of 233 figure 17-9. micro interface multiplexed read cycle d[15:0] r dy t8 t10 c s t6 t12 r d, w r, d s t9a d[15:0] t13 t14 t15 t16 t17 t18 t19 r / w t20 t21 a [ 10:0 ] t1a ale t2 t3 t4 t1b t9b t5
ds3170 ds3/e3 single-chip transceiver 227 of 233 17.4 clad jitter characteristics parameter min typ max units intrinsic jitter (ui p-p ) 0.04 ui p-p intrinsic jitter (ui rms ) 0.01 ui rms peak jitter transfer 1.75 db 17.5 liu interface ac characteristics 17.5.1 waveform templates table 17-7. ds3 waveform template time (in unit intervals) normalized amplitude equation upper curve -0.85  t  -0.68 0.03 -0.68  t  +0.36 0.5 {1 + sin[( / 2)(1 + t / 0.34)]} + 0.03 0.36  t  1.4 0.08 + 0.407e -1.84(t - 0.36) lower curve -0.85  t  -0.36 -0.03 -0.36  t  +0.36 0.5 {1 + sin[( / 2)(1 + t / 0.18)]} - 0.03 0.36  t  1.4 -0.03 governing specifications: ansi t1.102 and bellcore gr-499 . table 17-8. ds3 waveform test parameters and limits parameter specification rate 44.736mbps (  20ppm) line code b3zs transmission medium coaxial cable (at&t 734a or equivalent) test measurement point at the end of 0 to 450ft of coaxial cable test termination 75  (  1%) resistive pulse amplitude between 0.36v and 0.85v pulse shape an isolated pulse (preceded by two zeros and followed by one or more zeros) falls within the curves listed in figure 17-11 . unframed all-ones power level at 22.368mhz between -1.8dbm and +5.7dbm unframed all-ones power level at 44.736mhz at least 20db less than the power measured at 22.368mhz pulse imbalance of isolated pulses ratio of positive and negative pulses must be between 0.90 and 1.10.
ds3170 ds3/e3 single-chip transceiver 228 of 233 figure 17-10. ds3 pulse mask template table 17-9. e3 waveform test parameters and limits parameter specification rate 34.368mbps (  20ppm) line code hdb3 transmission medium coaxial cable (at&t 734a or equivalent) test measurement point at the transmitter test termination 75  (  1%) resistive pulse amplitude 1.0v (nominal) pulse shape an isolated pulse (preceded by two zeros and followed by one or more zeros) falls within the template shown in figure 17-11 . ratio of the amplitudes of positive and negative pulses at the center of the pulse interval 0.95 to 1.05 ratio of the widths of positive and negative pulses at the nominal half amplitude 0.95 to 1.05
ds3170 ds3/e3 single-chip transceiver 229 of 233 figure 17-11 e3 waveform template 0 -0.1 -0.2 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 1.1 1.2 time (ns) g.703 e3 template output level (v) 29.1 24.5 12.1 8.65 17
ds3170 ds3/e3 single-chip transceiver 230 of 233 17.5.2 liu input/output characteristics table 17-10. receiver input characteristics?ds3 mode (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units receive sensitivity (length of cable) 900 1200 ft signal-to-noise ratio, interfering signal test (notes 1, 2) 10 input pulse amplitude, rmon = 0 (notes 2, 3) 1000 mvpk input pulse amplitude, rmon = 1 (note 2, 3) 200 mvpk analog los declare, rmon = 0 (note 4) -24 db analog los clear, rmon = 0 (note 4) -17 db analog los declare, rmon = 1 (note 4) -38 db analog los clear, rmon = 1 (note 4) -29 db intrinsic jitter generation (note 4) 0.03 ui p-p table 17-11. receiver input characteristics?e3 mode (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units receive sensitivity (length of cable) 900 1200 ft signal-to-noise ratio, interfering signal test (notes 1, 2) 12 input pulse amplitude, rmon = 0 (notes 2, 3) 1300 mvpk input pulse amplitude, rmon = 1 (notes 2, 3) 260 mvpk analog los declare, rmon = 0 (note 4) -24 db analog los clear, rmon = 0 (note 4) -17 db analog los declare, rmon = 1 (note 4) -38 db analog los clear, rmon = 1 (note 4) -29 db intrinsic jitter generation (note 4) 0.03 ui p-p note 1: an interfering signal (2 15 ? 1 prbs for ds3, 2 23 ? 1 prbs for e3, b3zs/hdb3 encoded, compliant waveshape, nominal bit rate) is added to the wanted signal. the combined signal is passed through 0 to 900ft of coaxial cable and presented to the ds3154 recei ver. this spec indicates the lowest signal-to-noise ratio that results in a bit error ratio < 10 -9 . note 2: not tested during production test. note 3: measured on the line side (i.e., the bnc connector side) of the 1:2 receive transformer ( figure 1-1 ). during measurement, incoming data traffic is unframed 2 15 ? 1 prbs for ds3 and unframed 2 23 ? 1 prbs for e3. note 4: with respect to nominal 800mvpk signal for ds3 and nominal 1000mvpk signal for e3.
ds3170 ds3/e3 single-chip transceiver 231 of 233 table 17-12. transmitter output characteristics?ds3 modes (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units ds3 output pulse amplitude, tlbo = 0 (note 1) 700 800 900 mvpk ds3 output pulse amplitude, tlbo = 1 (note 1) 520 700 800 mvpk ratio of positive and negative pulse-peak amplitudes 0.9 1.1 ds3 unframed all-ones power level at 22.368mhz, 3khz bandwidth -1.8 +5.7 dbm ds3 unframed all-ones power level at 44.736mhz vs. power level at 22.368mhz, 3khz bandwidth -20 db intrinsic jitter generation (note 2) 0.02 0.05 ui p-p table 17-13. transmitter output characteristics?e3 mode (v dd = 3.3v  5%, t a = -40c to +85c.) parameter min typ max units output pulse amplitude (note 1) 900 1000 1100 mvpk pulse width 14.55 ns ratio of positive and negative pulse amplitudes (at centers of pulses) 0.95 1.05 ratio of positive and negative pulse widths (at nominal half amplitude) 0.95 1.05 intrinsic jitter generation (note 2) 0.02 0.05 ui p-p note 1: measured on the line side (i.e., the bnc connector side) of the 2:1 transmit transformer ( figure 1-1 ). note 2: measured with jitter-free clock applied to tclk and a bandpass jitter filter with 10hz and 800khz cutoff frequencies. not teste d during production test.
ds3170 ds3/e3 single-chip transceiver 232 of 233 17.6 jtag interface ac characteristics all ac timing characteristics are specified with a 50 pf capacitive load on jtdo pin and 25 pf capacitive load on all other digital output pins, v ih = 2.4v and v il = 0.8. the voltage threshold for all timing measurements is vdd/2. the voltage threshold for all timing measurements is vdd/2. the generic timing definitions shown in figure 17-1 , figure 17-2 , figure 17-3 , and figure 17-4 apply to this interface . table 17-14. jtag interface timing (v dd = 3.3v  5%, t j = -40c to +125c.) signal name(s) symbol description min typ max units notes jtclk f1 clock frequency (1/t1) 0 10 mhz jtclk t2 clock high or low period 20 ns jtclk t3 rise/fall times 5 ns jtms and jtdi t5 hold time from jtclk rising edge 10 ns jtms and jtdi t6 setup time to jtclk rising edge 10 ns jtdo t7 delay from jtclk falling edge 0 20 ns jtdo t8 delay out of hi z from jtclk falling edge 0 20 ns jtdo t9 delay to hi z from jtclk falling edge 0 20 ns any digital output t7 delay from jtclk falling edge 0 20 ns 1 any digital output t7 delay from jtclk rising edge 0 20 ns 2 any digital output t8 delay out of hi z from jtclk falling edge 0 20 ns 1 any digital output t9 delay into hi z from jtclk falling edge 0 20 ns 1 any digital output t8 delay out of hi z from jtclk rising edge 0 20 ns 2, 3 any digital output t9 delay into hi z from jtclk rising edge 0 20 ns 2, 3 note 1: change during update-dr state. note 2: change during update-ir state to or from extest mode. note 3: change during update-ir state to or from hiz mode.
ds3170 ds3/e3 single-chip transceiver 233 of 233 maxim/dallas semiconductor cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a ma xim/dallas semiconductor product. no circuit patent licenses are implied. maxim/dallas semiconductor reserves the right to change the circuitry and specification s without notice at any time. maxim integrated products, 120 san gabriel drive, sunnyvale, ca 94086 408-737-7600 ? 2004 maxim integrated products  printed usa are registered trademarks of maxim integrated products, inc., and dallas semiconductor corporation. 18 revision history date description 101404 new product release. note: to obtain a revision history for the preliminary releases of this document, contact the factory at telecom.support@dalsemi.com .


▲Up To Search▲   

 
Price & Availability of DS3170LN

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X